Skip to main content
name must match ^[a-z][a-z0-9_]{0,63}$. description cannot be empty. schema.type must be "object". inputSchema is accepted as an alias of schema. handler is required. run is an alias of handler. context gives you operationId, attempt, runId, stepKey, callId, and signal. An idempotent handler should treat operationId as the identity of the effect. Throw ToolFailure when the tool itself fails:
retryable: false is the default. A retryable failure uses the tool’s retry policy when you set one. retry accepts maxAttempts, initialIntervalMs, maxIntervalMs, and backoff of "fixed" or "exponential". The effect class is not optional. See Tool side effects.