fix(skill-mcp): avoid propertyNames for Gemini compatibility (#1465)
- Replace record(string, unknown) with object({}) in arguments schema
- record() generates propertyNames which Gemini rejects with 400 error
- object({}) generates plain { type: 'object' } without propertyNames
- Runtime parseArguments() already handles arbitrary object keys
Fixes #1315
This commit is contained in:
@@ -118,7 +118,7 @@ export function createSkillMcpTool(options: SkillMcpToolOptions): ToolDefinition
|
||||
resource_name: tool.schema.string().optional().describe("MCP resource URI to read"),
|
||||
prompt_name: tool.schema.string().optional().describe("MCP prompt to get"),
|
||||
arguments: tool.schema
|
||||
.union([tool.schema.string(), tool.schema.record(tool.schema.string(), tool.schema.unknown())])
|
||||
.union([tool.schema.string(), tool.schema.object({})])
|
||||
.optional()
|
||||
.describe("JSON string or object of arguments"),
|
||||
grep: tool.schema
|
||||
|
||||
Reference in New Issue
Block a user