McpToolTriggerOptions interface
MCP 工具觸發器的設定選項。 這些選項定義觸發器的行為與元資料。
屬性
| description | 工具或觸發器的描述。 這提供了關於觸發器目的的額外背景。 |
| metadata | JSON 序列化的元資料物件。 關於該工具的額外 JSON 格式元資料。 |
| result |
可選的 JSON 序列化 JSON 架構,描述此工具的結構化結果。 當提供時,該值會以 JSON 形式驗證並一併 |
| tool |
與觸發器相關聯的工具名稱。 這通常是應用程式設定或環境變數。 |
| tool |
工具的額外屬性或元資料。 可提供陣列或 Args 物件格式。 |
屬性詳細資料
description
工具或觸發器的描述。 這提供了關於觸發器目的的額外背景。
description: string
屬性值
string
metadata
JSON 序列化的元資料物件。 關於該工具的額外 JSON 格式元資料。
metadata?: string
屬性值
string
resultSchema
可選的 JSON 序列化 JSON 架構,描述此工具的結構化結果。
當提供時,該值會以 JSON 形式驗證並一併 useResultSchema: true 傳送,讓支援結構化內容的 MCP 用戶端可以使用已宣告的架構。
resultSchema?: string
屬性值
string
toolName
與觸發器相關聯的工具名稱。 這通常是應用程式設定或環境變數。
toolName: string
屬性值
string
toolProperties
工具的額外屬性或元資料。 可提供陣列或 Args 物件格式。
toolProperties?: McpToolProperty[] | Args
屬性值
McpToolProperty[] | Args