Skip to content

ReadMcpResourceOutput

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  901577992["output_types.ReadMcpResourceOutput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 901577992
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

tool_use_result for the ReadMcpResource tool.

Source code in src/clawd_code_sdk/models/output_types.py
class ReadMcpResourceOutput(TypedDict):
    """``tool_use_result`` for the ReadMcpResource tool."""

    contents: list[ReadMcpResourceContentItem]
    """Resource contents."""
    error: NotRequired[str]
    """Error message when the resource could not be read."""

contents instance-attribute

Resource contents.

error instance-attribute

error: NotRequired[str]

Error message when the resource could not be read.

:fa-brands-github: Show source on GitHub