@plume-canvas/server 0.1.34 → 0.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +6 -6
- package/dist/index.d.ts +2 -14
- package/dist/index.js +16 -16
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2197,18 +2197,6 @@ export declare interface ManifestPluginEntry {
|
|
|
2197
2197
|
disabled?: boolean;
|
|
2198
2198
|
}
|
|
2199
2199
|
|
|
2200
|
-
/**
|
|
2201
|
-
* 一个参数的完整写法:`'string'` 或 `{ type: 'string', description: '……' }`。
|
|
2202
|
-
*
|
|
2203
|
-
* 为什么允许多写一句说明:Agent 面板悬停 MCP 工具时会把参数逐条列出来。
|
|
2204
|
-
* 只有类型的话,用户看到一串光秃秃的 `canvasId string`,不知道每个参数干什么;
|
|
2205
|
-
* 内置工具(zod 的 `.describe()`)一直有说明,插件工具却没有 —— 同一个面板两种样子。
|
|
2206
|
-
*/
|
|
2207
|
-
declare type McpParamSpec = McpParamType | {
|
|
2208
|
-
type: McpParamType;
|
|
2209
|
-
description?: string;
|
|
2210
|
-
};
|
|
2211
|
-
|
|
2212
2200
|
/** 一个参数的简表类型(够覆盖绝大多数工具;复杂 schema 走宿主内置工具) */
|
|
2213
2201
|
declare type McpParamType = 'string' | 'number' | 'boolean';
|
|
2214
2202
|
|
|
@@ -2244,8 +2232,8 @@ declare interface McpToolDef {
|
|
|
2244
2232
|
name: string;
|
|
2245
2233
|
/** 给 AI 看的一句话说明(写好这句,AI 才知道什么时候用) */
|
|
2246
2234
|
description: string;
|
|
2247
|
-
/** 参数简表:键 = 参数名,值 =
|
|
2248
|
-
input?: Record<string,
|
|
2235
|
+
/** 参数简表:键 = 参数名,值 = 类型。缺省 = 不收参数 */
|
|
2236
|
+
input?: Record<string, McpParamType>;
|
|
2249
2237
|
/** 必填参数名(缺省全可选) */
|
|
2250
2238
|
required?: string[];
|
|
2251
2239
|
/** 执行体:收参数、返回可 JSON 化的值 */
|