@modelcontextprotocol/ext-apps - v1.0.1
    Preparing search index...

    Type Alias ToolCallback<Args>

    ToolCallback: BaseToolCallback<
        CallToolResult,
        RequestHandlerExtra<ServerRequest, ServerNotification>,
        Args,
    >

    Callback for a tool handler registered with Server.tool().

    Parameters will include tool arguments, if applicable, as well as other request handler context.

    The callback should return:

    • structuredContent if the tool has an outputSchema defined
    • content if the tool does not have an outputSchema
    • Both fields are optional but typically one should be provided

    Type Parameters

    • Args extends undefined | ZodRawShapeCompat | AnySchema = undefined