Read Resource • AI Agent SDK

read_resource: Read an MCP resource by URI and return its normalised contents.

read_resource

Method

</div>

This is a method of the MCPToolRunner class in the mcp module.

Read an MCP resource by URI and return its normalised contents.

Signature

python
def read_resource(uri: Any) -> Any

Parameters

ParamField Any

No description available.

Returns

ResponseField Any

The result of the operation.

Uses

  • normalize_resource_result

Source

View on GitHub

praisonaiagents/mcp/mcp.py at line 291