Components / AI components / Tools & execution
ToolsExperimental alpha

ToolResult

Safe, bounded output with a useful fallback.

ToolResult preview

3 inactive accounts found
Acme Sandbox · Example Studio · Demo Works

Interactions use local sample data.

Usage and props

Redact secrets before passing content to any UI.

Supported inputs

This is the public signature used by this example. Open Code to see how the values and callbacks fit together.

text? · error? · maxCharacters? · onRetry?
How state and callbacks work

These are the main props for the example. The package's TypeScript declarations include the full API.

Customize and use with a keyboard