require-valid-prompt-tools
Require Copilot prompt-file tools metadata to be a non-empty list of tool or tool-set names when present.
Rule catalog ID: R027
Targeted pattern scopeâ
.github/prompts/**/*.prompt.md
What this rule reportsâ
- scalar
toolsvalues such astools: fetch - empty
toolsvalues - empty prompt tool lists such as
tools: []
Why this rule existsâ
VS Code documents reusable prompt-file tools metadata as a list. Keeping prompt tool declarations in that documented list form makes the allowed tool surface explicit and easier for Copilot clients to interpret consistently.
â Incorrectâ
---
description: Review a pull request
tools: fetch
---
Review the proposed changes.
â Correctâ
---
description: Review a pull request
tools: ['search/codebase', 'fetch/web']
---
Review the proposed changes.