TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/composiohq/composio/llms.txt
Use this file to discover all available pages before exploring further.
Tools class provides methods to retrieve, execute, and manage tools. Tools are individual functions like GITHUB_CREATE_ISSUE, GMAIL_SEND_EMAIL, etc.
Accessing Tools
Methods
get
Retrieve tools based on various filters. Returns provider-specific tool collection (type automatically inferred).The user ID to get tools for. Used for user-specific authentication.
Get a single tool by slug (e.g.,
"GITHUB_CREATE_ISSUE").List of specific tool slugs to retrieve.
Search term to filter tools by name or description.
Filter tools by toolkit slugs.
Filter by required OAuth scopes.
Apply schema or execution modifiers to tools. See Decorators.
Maximum number of tools to return.
Provider-specific tool collection. The type is automatically inferred:
OpenAIProvider→list[ChatCompletionToolParam]AnthropicProvider→list[ToolParam]- Other providers → respective tool types
execute
Execute a tool with the provided parameters.The tool slug to execute (e.g.,
"GITHUB_CREATE_ISSUE").The arguments to pass to the tool. Must match the tool’s input schema.
The user ID to execute the tool for. Used to select the connected account.
Specific connected account ID to use for execution.
Custom authentication parameters for the tool execution.
Custom connection data (takes priority over
custom_auth_params).Additional text context for the tool execution.
Specific tool version to execute. Overrides SDK-level toolkit versions.
Skip version check for ‘latest’ version. May cause unexpected behavior.
Apply before/after execution modifiers.
Execution result with the following structure:
proxy
Make direct API calls through connected accounts.API endpoint path (e.g.,
/repos/owner/repo/issues).HTTP method for the request.
Request body for POST/PUT/PATCH requests.
Connected account ID to use for authentication.
Additional parameters (headers, query params, etc.).Each parameter has:
name: Parameter namevalue: Parameter valuetype:"header","query", or"path"
Custom connection data for the request.
custom_tool
Register a custom tool. This is an alias forcomposio.tools.custom_tool.
See Custom Tools for detailed documentation.
get_raw_composio_tool_by_slug
Get raw tool schema without provider wrapping (advanced usage).get_raw_composio_tools
Get raw tool schemas without provider wrapping (advanced usage).Examples
Get Tools by Toolkit
Get Specific Tools
Search Tools
Execute Tools
Execute with Specific Account
Execute with Custom Auth
Proxy Call
Type Safety
TheTools class is generic and provides full type safety:
Next Steps
Decorators
Learn about tool modifiers
Custom Tools
Create your own tools
Connected Accounts
Manage authentication
Providers
Use tools with AI frameworks