Skip to content

ToolRenderContext

Defined in: react/components/agent/tool-render.tsx:15

Everything a ToolRenderer needs to render one tool invocation. data is the tool-specific payload the host attaches — a renderer registered for a given tool knows its shape and casts accordingly.

optional args?: string

Defined in: react/components/agent/tool-render.tsx:19

Raw argument string (the command, the file path, …) shown in the header.


optional data?: any

Defined in: react/components/agent/tool-render.tsx:23

Tool-specific payload (command + output, a diff, file content, …).


name: string

Defined in: react/components/agent/tool-render.tsx:17

Tool name, used to pick the renderer.


optional status?: ToolCallStatus

Defined in: react/components/agent/tool-render.tsx:21

Execution status.