Answer: You specify tools with the --allow-tool option by naming the tool kind (shell, write, read, url, memory, or MCP-SERVER), and for shell, write, url, and MCP server kinds you can add a filter in parentheses to control which specific tools are allowed. For example, shell(git:*) allows all Git subcommands, write(README.md) allows writing to any file whose path ends with /README.md, and github(create_issue) allows only the create_issue tool from the github MCP server. Status: Confirmed Entry: tool/github-copilot/permissions-and-security/allow-tool-option Revision: 3 Digest: sha256:1036a3d0a99ae2d4 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:31:48Z Last changed: 2026-11-18T13:09:19Z (exact command example: shell(npm test) → —) Last verified: 2026-11-20T13:13:17Z Next check: 2026-11-21T13:13:17Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of tool kinds | shell | [1] | 2026-11-20 shell filter example | shell(git:*) | [1] | 2026-11-20 write filter example | write(README.md) | [1] | 2026-11-20 url filter example | url(github.com) | [1] | 2026-11-20 MCP server filter example | github(create_issue) | [1] | 2026-11-20 wildcard note | Wildcards are only supported for shell to match all subcommands of a specified tool, and for url at the start of the host name to match any subdomain, or at the end of a path to match any path suffix | [1] | 2026-11-20 Sources: [1] GitHub. "GitHub Copilot CLI programmatic reference - GitHub Docs". https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-programmatic-reference Role: primary. Accessed: 2026-11-20T13:13:17Z Quote: "Kind of tool What it controls shell Executing shell commands." (Supports: tool kinds) Quote: "shell(git:*) Allow all Git subcommands ( git push , git status , etc.)." (Supports: shell filter example) Quote: "write(README.md) Allow the CLI to write to any file whose path ends with /README.md ." (Supports: write filter example) Quote: "url(github.com) Allow the CLI to access HTTPS URLs on github.com." (Supports: url filter example) Quote: "MCP-SERVER github(create_issue) Allow only the create_issue tool from the github MCP server." (Supports: MCP server filter example) Quote: "Wildcards are only supported for shell to match all subcommands of a specified tool, and for url at the start of the host name to match any subdomain, or at the end of a path to match any path suffix" (Supports: wildcard note) Snapshot SHA-256: b602b79754b43eac1a94d06d2449530ec8c83c8b0e37ab167e33ac5d861f6624 (captured 2026-11-18T13:09:20Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:09:19Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:13:17Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:13:17Z Last attempt: 2026-11-20T13:13:17Z Notes and limitations: Extracted automatically from a single official source (section "Tools for the --allow-tool option"). Related: https://latestn.com/tool/github-copilot/permissions-and-security/allow-tools-without-approval How do I allow GitHub Copilot CLI tools to run without manual approval? https://latestn.com/tool/github-copilot/permissions-and-security/apply-guardrails-copilot-cli How do I apply guardrails so teams follow organizational policies in GitHub Copilot CLI? https://latestn.com/tool/github-copilot/permissions-and-security/approval-options What approval options does GitHub Copilot offer for running commands? https://latestn.com/tool/github-copilot/permissions-and-security/allow-deny-tool-use How do I allow or deny tool use in GitHub Copilot CLI? https://latestn.com/tool/github-copilot/permissions-and-security/allow-deny-tools How do I allow or deny specific tools in GitHub Copilot CLI? https://latestn.com/tool/github-copilot/permissions-and-security/allow-safe-commands How do I allow safe commands to run in GitHub Copilot without manual approval? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T13:09:19Z | changed | exact command example: shell(npm test) → — | [1] 2026-11-16T12:57:31Z | changed | exact command example: — → shell(npm test) | [1] 2026-11-13T03:31:48Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/permissions-and-security/allow-tool-option/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/permissions-and-security/allow-tool-option POST: https://latestn.com/dispute/tool/github-copilot/permissions-and-security/allow-tool-option with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/permissions-and-security/allow-tool-option?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I allow specific tools with the --allow-tool option in GitHub Copilot CLI? Revision 3, last verified 2026-11-20T13:13:17Z. https://latestn.com/tool/github-copilot/permissions-and-security/allow-tool-option (accessed 2026-11-21T09:59:40Z). @misc{LatestN_tool_github_copilot_permissions_and_security_allow_tool_option_r3, title = {How do I allow specific tools with the --allow-tool option in GitHub Copilot CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/permissions-and-security/allow-tool-option}}, note = {Revision 3; digest sha256:1036a3d0a99ae2d4; last verified 2026-11-20T13:13:17Z; accessed 2026-11-21T09:59:40Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/permissions-and-security/allow-tool-option