Skip to content

RegistrableServerTool

Defined in: packages/engine/src/lib/agent-session/tool-registry.ts:21

A Server Tool with its input and output types erased so tools of different types share one list.

The agent loop is experimental in 0.3 and may change in any minor release.

readonly approval: "never"

Defined in: packages/engine/src/lib/agent-session/tool-registry.ts:35

Whether a call needs user approval before it runs.


readonly description: string

Defined in: packages/engine/src/lib/agent-session/tool-registry.ts:25

Description shown to the model.


readonly input: ZodType<unknown>

Defined in: packages/engine/src/lib/agent-session/tool-registry.ts:27

Schema the model’s arguments are validated against.


readonly locus: "server"

Defined in: packages/engine/src/lib/agent-session/tool-registry.ts:31

Where the tool runs.


readonly name: string

Defined in: packages/engine/src/lib/agent-session/tool-registry.ts:23

Name the model calls the tool by. Must match ^[A-Za-z0-9_-]{1,64}$.


readonly output: ZodType<unknown>

Defined in: packages/engine/src/lib/agent-session/tool-registry.ts:29

Schema the tool’s result is validated against.


readonly sideEffect: "idempotent" | "read_only" | "non_idempotent"

Defined in: packages/engine/src/lib/agent-session/tool-registry.ts:33

How the tool affects the world.

execute(input, ctx): Promise<unknown>

Defined in: packages/engine/src/lib/agent-session/tool-registry.ts:37

Runs the tool with validated input.

never

ServerToolContext

Promise<unknown>


summarize(output): string

Defined in: packages/engine/src/lib/agent-session/tool-registry.ts:39

Pure, synchronous, user-safe one-line description of a result.

never

string