Agent mode is not available
Describe the bug When I use Agent mode, no matter which model or input I try, I always get the message: “Sorry, an error occurred while generating a response.” But everything works fine in Ask mode. Interestingly, Agent mode works perfectly in VSCode.
Versions
- Copilot for Xcode: 0.38.0
- Xcode: 16.4
- macOS: 15.5
After some troubleshooting, I found that this issue pops up whenever I enable Figma’s official MCP. If I turn it off, I get the error mentioned above. Here’s what the log says:
[2025-07-17T05:45:42.510Z] [info] [GitHubCopilot] [10729] window/logMessage: { "type" : 1, "message" : "[fetchChat] Unhandled status from server: 400 {\"error\":{\"message\":\"Invalid 'tools[11].function.name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_\\\\.-]+$'.\",\"code\":\"invalid_value\"}}\n" } [2025-07-17T05:45:42.510Z] [info] [GitHubCopilot] [10729] window/logMessage: { "type" : 4, "message" : "[toolCallingLoop] Processing fetch type: failed in iteration 1 for turn fa441c54-12be-4b45-aee1-b138ff3c364e: {\n \"type\": \"failed\",\n \"reason\": \"unhandled status from server: 400 {\\\"error\\\":{\\\"message\\\":\\\"Invalid 'tools[11].function.name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_\\\\\\\\.-]+$'.\\\",\\\"code\\\":\\\"invalid_value\\\"}}\\n\",\n \"requestId\": \"f291906c-2569-4fb1-886a-094f2709f035\",\n \"code\": 400\n}" }
Can I ask what LLM model do you use?
Can I ask what LLM model do you use?
I've tried every model—Claude, GPT, Gemini—you name it. They all throw errors.
Invalid 'tools[11].function.name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_\.-]+$'.
It looks like the tool name in figma MCP server does not follow the naming pattern. @iamnanyi Could you share what is the tool name for tools[11].function.name?
// cc: @flytiny
Invalid 'tools[11].function.name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_.-]+$'.
It looks like the tool name in figma MCP server does not follow the naming pattern. @iamnanyi Could you share what is the tool name for
tools[11].function.name?// cc: @flytiny