Skip to content

Commit 9adddc0

Browse files
committed
docs: update README.v2 Context logging signatures to use data
Github-Issue: #397
1 parent 924f123 commit 9adddc0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.v2.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -681,11 +681,11 @@ The Context object provides the following capabilities:
681681
- `ctx.mcp_server` - Access to the MCPServer server instance (see [MCPServer Properties](#mcpserver-properties))
682682
- `ctx.session` - Access to the underlying session for advanced communication (see [Session Properties and Methods](#session-properties-and-methods))
683683
- `ctx.request_context` - Access to request-specific data and lifespan resources (see [Request Context Properties](#request-context-properties))
684-
- `await ctx.debug(message)` - Send debug log message
685-
- `await ctx.info(message)` - Send info log message
686-
- `await ctx.warning(message)` - Send warning log message
687-
- `await ctx.error(message)` - Send error log message
688-
- `await ctx.log(level, message, logger_name=None)` - Send log with custom level
684+
- `await ctx.debug(data)` - Send debug log message
685+
- `await ctx.info(data)` - Send info log message
686+
- `await ctx.warning(data)` - Send warning log message
687+
- `await ctx.error(data)` - Send error log message
688+
- `await ctx.log(level, data, logger_name=None)` - Send log with custom level
689689
- `await ctx.report_progress(progress, total=None, message=None)` - Report operation progress
690690
- `await ctx.read_resource(uri)` - Read a resource by URI
691691
- `await ctx.elicit(message, schema)` - Request additional information from user with validation

0 commit comments

Comments
 (0)