API reference: Tools lists every built-in tool and helper, its options, and links to source and tests.
- OpenAPI tools: point
createOpenApiTools()at the service’s OpenAPI spec. See OpenAPI tools. - CLI in a task: if the service has a CLI (
gh,linear,notion,slack), run it inside a<Task>via thebashtool. See side-effect tools with idempotency. - Custom
defineTool: wrap the service’s REST API in a Zod-validated tool. SeedefineTool.
Example: CLI in a task (Pattern 2)
gh auth login once on the host before executing. The bash tool executes in the task’s sandbox, so credentials set in the environment carry through automatically.
Quick decision
Always mark side-effecting tools with
sideEffect: true and use ctx.idempotencyKey so retries don’t double-fire.