Skip to content

tool

Class info

Classes

Name Children Inherits
JsonOutput
pyt3client.tool
Result of a tool whose server advertises no `outputSchema`.
      RootModel
      pyt3client.tool
      ToolSpec
      pyt3client.tool
      A T3 Code MCP tool: its wire name plus the models for its arguments and result.

        🛈 DocStrings

        Typed handles for T3 Code MCP tools.

        Every tool in pyt3client.models.tools is exposed as a ToolSpec constant (for example THREAD_LAUNCH) that ties the tool's wire name to its generated input and output models. T3Client.call takes one, so calls are type-checked end to end without hand-written signatures for each of the ~50 tools.

        JsonOutput

        Bases: RootModel[JsonValue]

        Result of a tool whose server advertises no outputSchema.

        Those tools (for example t3_pending_request or t3_queue) still answer with a JSON text block; it is decoded but not validated against a schema.

        Source code in src/pyt3client/tool.py
        16
        17
        18
        19
        20
        21
        class JsonOutput(RootModel[JsonValue]):
            """Result of a tool whose server advertises no `outputSchema`.
        
            Those tools (for example `t3_pending_request` or `t3_queue`) still answer
            with a JSON text block; it is decoded but not validated against a schema.
            """
        

        ToolSpec dataclass

        A T3 Code MCP tool: its wire name plus the models for its arguments and result.

        Source code in src/pyt3client/tool.py
        24
        25
        26
        27
        28
        29
        30
        31
        32
        33
        @dataclass(frozen=True, slots=True)
        class ToolSpec[InputT: BaseModel, OutputT: BaseModel]:
            """A T3 Code MCP tool: its wire name plus the models for its arguments and result."""
        
            name: str
            """Tool name as advertised in `tools/list`, such as `t3_thread_launch`."""
            input_type: type[InputT]
            output_type: type[OutputT]
            read_only: bool
            """The tool's `readOnlyHint`. Read-only sign-ins can call only these tools."""
        

        name instance-attribute

        name: str
        

        Tool name as advertised in tools/list, such as t3_thread_launch.

        read_only instance-attribute

        read_only: bool
        

        The tool's readOnlyHint. Read-only sign-ins can call only these tools.