← All Toolkits

Get Tool Schemas

COMPOSIO_GET_TOOL_SCHEMASRead-only

Returns the full input schema for tools you already know the slug for, so you can build schema-compliant arguments before executing.

When to use it

Reach for `COMPOSIO_GET_TOOL_SCHEMAS` when `COMPOSIO_SEARCH_TOOLS` hands you a tool with a `schemaRef` instead of an inline `input_schema`, or when you need the `output_schema` to validate a response in the workbench.

Only pass slugs that `COMPOSIO_SEARCH_TOOLS` returned. Never guess or fabricate a slug. If a slug is not found, the response suggests close matches you can call again with.

Input parameters

tool_slugsarray<string>Required

Array of tool slugs to retrieve schemas for. Pass valid tool slugs; never invent.

includearray<string>Default: input_schema

Schema fields to include. Defaults to ["input_schema"]. Include "output_schema" when calling tools in the workbench to validate response structure.

session_idstring

Pass the session_id if you received one from a prior COMPOSIO_SEARCH_TOOLS call.

Response

dataobject

Data from the action execution

errorstring

Error if any occurred during the execution of the action

successfulboolean

Whether or not the action execution was successful or not