Skip to main content

tools — Custom tools

Owner-defined tools the agent can call: api_endpoint (HTTP), code (sandboxed JS/Python), and derived (a preset wrapper over a built-in). Tools can return rich generative-UI via a _render payload. Section key tools · Shape array · Tier Pro and up (free trial includes it)
Edit in the dashboard: Tools page
Related: Built-in tools · Tool parameters · Code-tool ctx & bridge
List of custom tool definitions.

Fields (per item)

input_schema items

Tool input parameters, as an ordered LIST (not a JSON-schema object). Each item describes one argument the agent supplies. The platform builds the tool’s input schema from this list; a non-array is treated as zero parameters. Ignored for type=‘derived’ (the wrapped base_tool defines the schema) — pass [].

anthropic_search_config fields

For type=‘derived’ tools wrapping web_search with engine=‘anthropic’: config merged into the Anthropic web_search wire object. Same shape as builtin_tools.web_search_anthropic_config.

anthropic_fetch_config fields

For type=‘derived’ tools wrapping web_fetch with engine=‘anthropic’: config merged into the Anthropic web_fetch wire object.

anthropic_search_config.user_location fields

Geographic context object used by Anthropic to return location-aware search results. When present, applies all non-empty fields (city, country, region, timezone) to localize results; when absent or fully empty, Anthropic applies its default.