Methods
get_raw_composio_tool_by_slug()
Returns schema for the given tool slug.
Returns
Tool
Raises
ToolNotFoundError— when the backend reports the slug as unknown (404, or 400 for a malformed slug). Any other client error, such as an invalid API key, is re-raised unchanged.
get_raw_composio_tools()
Get a list of tool schemas based on the provided filters.
Returns
list[Tool]
get_raw_tool_router_meta_tools()
Fetches the tools exposed by a tool router session. This method fetches helper/meta tools and any preloaded app tools from the Composio API and transforms them to the expected format. It provides access to the underlying tool data without provider-specific wrapping.
Returns
list[Tool] — The list of meta tools
Example
get()
Get a tool or list of tools based on the provided arguments. The return type is automatically inferred based on the provider’s generic parameters. For example: - OpenAIProvider -> list[ChatCompletionToolParam] - AnthropicProvider -> list[ToolParam] - CustomProvider[MyTool, list[MyTool]] -> list[MyTool]
Returns
TToolCollection — Provider-specific tool collection (TToolCollection).
execute()
Execute a tool with the provided parameters. This method calls the Composio API to execute the tool and returns the response.
Returns
ToolExecutionResponse — The response from the tool.
proxy()
Proxy a tool call to the Composio API.user_id is the user the connected account belongs to. Projects with 2FA enabled check it against the connected account and may require it.
Returns
tool_proxy_response.ToolProxyResponse
View source