> For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt.

# Interface: ToolSpec

用于生成提示词的工具 schema，描述 LLM 可以通过 Query()/Mutation() 使用的工具。结构参考了 MCP 的工具 schema（name、description、inputSchema、annotations）。

## Properties

### annotations?

> `optional` **annotations?**: `object`

#### destructiveHint?

> `optional` **destructiveHint?**: `boolean`

#### readOnlyHint?

> `optional` **readOnlyHint?**: `boolean`

***

### description?

> `optional` **description?**: `string`

***

### inputSchema

> **inputSchema**: `Record`\<`string`, `unknown`>

***

### name

> **name**: `string`

***

### outputSchema

> **outputSchema**: `Record`\<`string`, `unknown`>
