Fix trailing commas in agent tools arrays causing empty tool names (#1543)

Three agent files had a trailing comma after the last element in their
YAML flow-sequence tools arrays. When parsed, this produces an empty
string as an extra tool entry, which the Copilot API rejects with:

  CAPIError: 400 Invalid 'tools[N].function.name': empty string

Affected files:
- agents/kusto-assistant.agent.md
- agents/mentoring-juniors.agent.md
- agents/address-comments.agent.md

Co-authored-by: ilderaj <>
This commit is contained in:
ilderaj
2026-04-29 10:16:41 +08:00
committed by GitHub
parent ae2c51d9cc
commit 6446c1aa62
3 changed files with 3 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ tools:
"usages", "usages",
"vscodeAPI", "vscodeAPI",
"microsoft.docs.mcp", "microsoft.docs.mcp",
"github", "github"
] ]
--- ---

View File

@@ -22,7 +22,7 @@ tools:
"terminalSelection", "terminalSelection",
"testFailure", "testFailure",
"usages", "usages",
"vscodeAPI", "vscodeAPI"
] ]
--- ---

View File

@@ -12,7 +12,7 @@ tools:
"search", "search",
"terminalLastCommand", "terminalLastCommand",
"terminalSelection", "terminalSelection",
"usages", "usages"
] ]
--- ---