diff --git a/lib/index.js b/lib/index.js index f3dc872..7567b5d 100644 --- a/lib/index.js +++ b/lib/index.js @@ -97,19 +97,23 @@ export function apply(ctx) { name: 'find_dsh_plugins', description: TOOL_DESCRIPTION, parameters: { - query: { - type: 'string', - required: true, - description: 'User\'s need in natural language (Chinese or English), e.g. "给纯文本模型读图片的能力", "手机上查看会话进度", "Claude Code 风格的终端界面".', - }, - limit: { - type: 'number', - description: 'Max results to return (default 5, max 10).', - }, - installable_only: { - type: 'boolean', - description: 'Return only plugins that declare a dsh.bundle manifest and can be installed with dsh plugin add. Default false.', + type: 'object', + additionalProperties: false, + properties: { + query: { + type: 'string', + description: 'User\'s need in natural language (Chinese or English), e.g. "给纯文本模型读图片的能力", "手机上查看会话进度", "Claude Code 风格的终端界面".', + }, + limit: { + type: 'number', + description: 'Max results to return (default 5, max 10).', + }, + installable_only: { + type: 'boolean', + description: 'Return only plugins that declare a dsh.bundle manifest and can be installed with dsh plugin add. Default false.', + }, }, + required: ['query'], }, output: { schema: {