Answer: You define a list of blocked tool names and, in the onPreToolUse hook, return a permissionDecision of "deny" with a reason when the input's toolName is in that list; otherwise return "allow". Status: Confirmed Entry: tool/github-copilot/permissions-and-security/pre-tool-use-block-tools Revision: 3 Digest: sha256:f335c18847a2c2b7 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:28:34Z Last changed: 2026-11-18T13:04:14Z (Deny reason: — → is not permitted in this environment) Last verified: 2026-11-20T13:09:03Z Next check: 2026-11-21T13:09:03Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Blocked tools list | BLOCKED_TOOLS | [1] | 2026-11-20 Hook name | onPreToolUse | [1] | 2026-11-20 Deny decision | deny | [1] | 2026-11-20 Deny reason | is not permitted in this environment | [1] | 2026-11-20 Allow decision | allow | [1] | 2026-11-20 Sources: [1] GitHub. "Pre-tool use hook - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-sdk/hooks/pre-tool-use Role: primary. Accessed: 2026-11-20T13:09:03Z Quote: "const BLOCKED_TOOLS = [ "shell" , "bash" , "write_file" , "delete_file" ];" (Supports: Blocked tools list) Quote: "onPreToolUse : async (input) => {" (Supports: Hook name) Quote: "permissionDecision : "deny"" (Supports: Deny decision) Quote: "permissionDecisionReason : `Tool ' ${input.toolName} ' is not permitted in this environment`" (Supports: Deny reason) Quote: "return { permissionDecision : "allow" };" (Supports: Allow decision) Snapshot SHA-256: 86ec40f2f6263877a8523d4b4544894fe1a6b539e2eab71c7c8788c5cb5e57c7 (captured 2026-11-18T13:04:14Z) 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:04:14Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:09:03Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:09:03Z Last attempt: 2026-11-20T13:09:03Z Notes and limitations: Extracted automatically from a single official source (section "Block specific tools"). Related: https://latestn.com/tool/github-copilot/permissions-and-security/prevent-agent-pushing-code-changes How can I prevent the GitHub Copilot cloud agent from pushing unvalidated or vulnerable code changes to my repository? https://latestn.com/tool/github-copilot/permissions-and-security/project-access-requirements Who can use projects in the GitHub Copilot app? https://latestn.com/tool/github-copilot/permissions-and-security/protect-agent-files-rulesets How do I protect GitHub Copilot custom agent files using rulesets? https://latestn.com/tool/github-copilot/permissions-and-security/permission-modes How do I set the default permission mode and disable bypass permissions mode for GitHub Copilot? https://latestn.com/tool/github-copilot/permissions-and-security/plugin-access-managed-settings What plugin access considerations apply when using enterprise-managed settings for GitHub Copilot Business? https://latestn.com/tool/github-copilot/permissions-and-security/pr-summary-availability Who can use GitHub Copilot to generate a pull request summary? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T13:04:14Z | changed | Deny reason: — → is not permitted in this environment | [1] 2026-11-16T12:53:02Z | changed | Allow decision: — → allow | [1] 2026-11-16T12:53:02Z | changed | Deny decision: — → deny | [1] 2026-11-16T12:53:02Z | changed | Hook name: — → onPreToolUse | [1] 2026-11-16T12:53:02Z | changed | Blocked tools list: — → BLOCKED_TOOLS | [1] 2026-11-16T12:53:02Z | changed | allow decision: allow → — | [1] 2026-11-16T12:53:02Z | changed | deny decision: deny → — | [1] 2026-11-16T12:53:02Z | changed | hook name: onPreToolUse → — | [1] 2026-11-16T12:53:02Z | changed | blocked tools list: [ "shell" , "bash" , "write_file" , "delete_file" ] → — | [1] 2026-11-13T03:28:34Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/permissions-and-security/pre-tool-use-block-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/pre-tool-use-block-tools POST: https://latestn.com/dispute/tool/github-copilot/permissions-and-security/pre-tool-use-block-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/pre-tool-use-block-tools?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I block specific tools with the GitHub Copilot pre-tool use hook? Revision 3, last verified 2026-11-20T13:09:03Z. https://latestn.com/tool/github-copilot/permissions-and-security/pre-tool-use-block-tools (accessed 2026-11-21T09:57:15Z). @misc{LatestN_tool_github_copilot_permissions_and_security_pre_tool_use_block_tools_r3, title = {How do I block specific tools with the GitHub Copilot pre-tool use hook?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/permissions-and-security/pre-tool-use-block-tools}}, note = {Revision 3; digest sha256:f335c18847a2c2b7; last verified 2026-11-20T13:09:03Z; accessed 2026-11-21T09:57:15Z} } 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/pre-tool-use-block-tools