JSON Schema format for defining tools does not conform to OpenAI's specification
@vritant24 is already working on this.
Since Jun 11, 2026.
Assessment
This issue has not been assessed yet.
Description
-
Copilot Chat Extension Version: 0.52.0
-
VS Code Version: 1.124.0
-
OS Version: Windows 11 25H2 26200.8246
-
Feature (e.g. agent/edit/ask mode): Custom endpoint/agent
-
Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): Custom endpoint
-
Logs:
2026-06-11 16:39:14.074 [trace] SSE: {"code":"InvalidParameter","message":"<400> InternalError.Algo.InvalidParameter: The parameters, when provided as a dict, must confirm to a valid openai-compatible JSON schema. Please check the schema definition for tool: terminal_selection.","request_id":"xxxxxx"}
2026-06-11 16:39:14.075 [info] ccreq:d2d5dcce.copilotmd | unknown | qwen3.7-plus | 383ms | [copilotLanguageModelWrapper]
2026-06-11 16:39:14.105 [info] [ToolCallingLoop] Stop hook result: shouldContinue=false, reasons=undefined -
Tool Definition:
{
"name": "terminal_last_command",
"description": "Get the last command run in the active terminal.",
"parameters": {},
"type": "function",
"strict": false
},
{
"name": "terminal_selection",
"description": "Get the current selection in the active terminal.",
"parameters": {},
"type": "function",
"strict": false
},
Steps to Reproduce:
1.Add custom endpoints using responses api provide by Aliyun(https://dashscope-us.aliyuncs.com/compatible-mode/v1)
2.Create an agent chat.
3.It will throw an expection because tools' parameters are null dicts instead of {"type": "object", "properties": {}}
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.9k
- PR merge metrics
- PR metrics pending
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/vscode
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
new release
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
All issues in microsoft/vscode
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·