require-valid-agent-tools
Require Copilot custom-agent tools metadata to be a non-empty list of tool or tool-set names when present.
Rule catalog ID: R025
Targeted pattern scopeâ
.github/agents/**/*.agent.md
What this rule reportsâ
- empty custom-agent
toolsvalues - scalar custom-agent
toolsvalues instead of the documented list form - empty custom-agent
toolslists such as[]
Why this rule existsâ
VS Code documents custom-agent tools as a list of tool or tool set names. Keeping that metadata in the documented list shape helps ensure a custom agent's allowed tool surface is explicit and machine-usable.
â Incorrectâ
---
description: Review implementation quality
tools: search/codebase
---
Review the implementation carefully.
â Correctâ
---
description: Review implementation quality
tools: ['search/codebase', 'fetch/web']
---
Review the implementation carefully.