Skip to main content

FrontendRenderToolSpec

Agent Runtimes


Agent Runtimes / types/tools / FrontendRenderToolSpec

Interface: FrontendRenderToolSpec

Defined in: src/types/tools.ts:56

Binds a backend tool to a frontend renderer.

Lets an agent declare, in its spec, which backend tool results should be rendered inline by the frontend, which renderer to use, and an optional CSS file to load. Frontend examples read this instead of hardcoding the tool name or CSS filename.

Properties

css?

optional css?: string

Defined in: src/types/tools.ts:62

Optional CSS filename the frontend loads for this renderer


renderer

renderer: string

Defined in: src/types/tools.ts:60

Renderer key the frontend maps to a component


tool

tool: string

Defined in: src/types/tools.ts:58

Name of the backend tool whose result is rendered inline