Skip to content

ReadMcpResourceDirOutput

Base classes

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

⋔ Inheritance diagram

graph TD
  4244341493["output_types.ReadMcpResourceDirOutput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 4244341493
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Output of the ReadMcpResourceDir tool.

Source code in src/clawd_code_sdk/models/output_types.py
class ReadMcpResourceDirOutput(TypedDict):
    """Output of the ReadMcpResourceDir tool."""

    resources: list[ReadMcpResourceDirResource]
    """Direct children of the directory resource.

    Subdirectories appear with mimeType "inode/directory".
    """
    error: NotRequired[str]
    """Human-readable error when the server could not list the directory"""

error instance-attribute

error: NotRequired[str]

Human-readable error when the server could not list the directory

resources instance-attribute

resources: list[ReadMcpResourceDirResource]

Direct children of the directory resource.

Subdirectories appear with mimeType "inode/directory".

:fa-brands-github: Show source on GitHub