Answer: Use --deny-tool to prevent Copilot from using a specific tool and --allow-tool to allow a specific tool without asking for approval; --deny-tool takes precedence over --allow-all-tools and --allow-tool. Status: Confirmed Entry: tool/github-copilot/permissions-and-security/allow-deny-tools Revision: 3 Digest: sha256:50cb61250c8ce78e (changes whenever the content changes) Timeline: Created: 2026-11-13T03:24:20Z Last changed: 2026-11-19T12:56:31Z (limit tools option: — → --available-tools) Last verified: 2026-11-20T13:02:43Z Next check: 2026-11-21T13:02:43Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of deny option | --deny-tool | [1] | 2026-11-20 allow option | --allow-tool | [1] | 2026-11-20 precedence | --allow-all-tools | [1] | 2026-11-20 shell command example | shell(COMMAND) | [1] | 2026-11-20 write tools | 'write' | [1] | 2026-11-20 MCP server tools | 'MCP_SERVER_NAME' | [1] | 2026-11-20 limit tools option | --available-tools | [1] | 2026-11-20 Sources: [1] GitHub. "Configuring GitHub Copilot CLI - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/configure-copilot-cli Role: primary. Accessed: 2026-11-20T13:02:43Z Quote: "Use --deny-tool to prevent Copilot from using a specific tool." (Supports: deny option) Quote: "Use --allow-tool to allow Copilot to use a specific tool without asking for your approval." (Supports: allow option) Quote: "This option takes precedence over the --allow-all-tools and --allow-tool options." (Supports: precedence) Quote: "Use shell(COMMAND) to allow or deny a specific shell command." (Supports: shell command example) Quote: "Use 'write' to allow or deny tools—other than shell commands—permission to modify files." (Supports: write tools) Quote: "Use 'MCP_SERVER_NAME' to allow or deny a specific tool from the specified MCP server." (Supports: MCP server tools) Quote: "To restrict Copilot to a specific set of tools, use --available-tools ." (Supports: limit tools option) Snapshot SHA-256: 13e80110407996f21917dfcb76e3c6741ab8485b51f6853dbe3151a104f2531a (captured 2026-11-18T12:57:01Z) 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-18T12:56:59Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:02:43Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:02:43Z Last attempt: 2026-11-20T13:02:43Z Notes and limitations: Extracted automatically from a single official source (section "Setting allowed tools"). Related: 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/github-copilot/permissions-and-security/allow-tool-option How do I allow specific tools with the --allow-tool option in GitHub Copilot CLI? 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/agentic-workflows-security-guardrails What security guardrails does GitHub Agentic Workflows provide? https://latestn.com/tool/github-copilot/permissions-and-security/allow-deny-specific-tools How do I allow or deny permission for a specific tool in GitHub Copilot CLI? 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/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T12:56:31Z | changed | limit tools option: — → --available-tools | [1] 2026-11-19T12:56:31Z | changed | MCP server tools: — → 'MCP_SERVER_NAME' | [1] 2026-11-19T12:56:31Z | changed | write tools: — → 'write' | [1] 2026-11-19T12:56:31Z | changed | shell command example: — → shell(COMMAND) | [1] 2026-11-19T12:56:31Z | changed | MCP server spec: 'MCP_SERVER_NAME' → — | [1] 2026-11-19T12:56:31Z | changed | write tools spec: 'write' → — | [1] 2026-11-19T12:56:31Z | changed | shell command spec: shell(COMMAND) → — | [1] 2026-11-19T12:56:31Z | changed | precedence: --allow-all-tools and --allow-tool → --allow-all-tools | [1] 2026-11-19T12:56:31Z | changed | allow example: copilot --allow-tool='shell' → — | [1] 2026-11-19T12:56:31Z | changed | deny example: copilot --deny-tool='shell(git push)' → — | [1] 2026-11-17T13:19:01Z | changed | MCP server spec: — → 'MCP_SERVER_NAME' | [1] 2026-11-17T13:19:01Z | changed | write tools spec: — → 'write' | [1] 2026-11-17T13:19:01Z | changed | shell command spec: — → shell(COMMAND) | [1] 2026-11-17T13:19:01Z | changed | allow example: — → copilot --allow-tool='shell' | [1] 2026-11-17T13:19:01Z | changed | deny example: — → copilot --deny-tool='shell(git push)' | [1] 2026-11-17T13:19:01Z | changed | limit tools option: --available-tools → — | [1] 2026-11-17T13:19:01Z | changed | MCP server tools: 'MCP_SERVER_NAME' → — | [1] 2026-11-17T13:19:01Z | changed | write tools: 'write' → — | [1] 2026-11-17T13:19:01Z | changed | shell command example: shell(COMMAND) → — | [1] 2026-11-13T03:24:20Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/permissions-and-security/allow-deny-tools/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-deny-tools POST: https://latestn.com/dispute/tool/github-copilot/permissions-and-security/allow-deny-tools 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-deny-tools?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I allow or deny specific tools in GitHub Copilot CLI? Revision 3, last verified 2026-11-20T13:02:43Z. https://latestn.com/tool/github-copilot/permissions-and-security/allow-deny-tools (accessed 2026-11-21T10:00:39Z). @misc{LatestN_tool_github_copilot_permissions_and_security_allow_deny_tools_r3, title = {How do I allow or deny specific tools in GitHub Copilot CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/permissions-and-security/allow-deny-tools}}, note = {Revision 3; digest sha256:50cb61250c8ce78e; last verified 2026-11-20T13:02:43Z; accessed 2026-11-21T10:00:39Z} } 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-deny-tools