Answer: The pre-tool use hook receives a PreToolUseHookInput (along with a HookInvocation) and returns a PreToolUseHookOutput (which may be null or undefined in TypeScript). Status: Confirmed Entry: tool/github-copilot/features/pre-tool-use-hook-signature Revision: 2 Digest: sha256:149808e824071974 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:28:35Z Last changed: 2026-11-17T13:27:15Z (Invocation type: — → HookInvocation) Last verified: 2026-11-20T13:09:05Z Next check: 2026-11-21T13:09:05Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Input type | PreToolUseHookInput | [1] | 2026-11-20 Output type | PreToolUseHookOutput | [1] | 2026-11-20 Invocation type | HookInvocation | [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:05Z Quote: "input : PreToolUseHookInput , invocation : HookInvocation" (Supports: Input type) Quote: "Promise < PreToolUseHookOutput | null | undefined >" (Supports: Output type) Quote: "input PreToolUseHookInput, invocation HookInvocation," (Supports: Invocation type) 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:18Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:09:05Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:09:05Z Last attempt: 2026-11-20T13:09:05Z Notes and limitations: Extracted automatically from a single official source (section "Hook signature"). Related: https://latestn.com/tool/github-copilot/features/prompt-engineering How do I write effective prompts for GitHub Copilot? https://latestn.com/tool/github-copilot/features/prompt-file-examples What are examples of using prompt files in GitHub Copilot? https://latestn.com/tool/github-copilot/features/prompt-file-examples-2 What prompt file examples are available in the GitHub Copilot customization library? https://latestn.com/tool/github-copilot/features/plugin-structure What is the file and directory structure of a GitHub Copilot CLI plugin? https://latestn.com/tool/github-copilot/features/pr-description-template-sections What should a GitHub Copilot pull request description template include? https://latestn.com/tool/github-copilot/features/pr-review-focus-areas What review focus areas can I include in GitHub Copilot custom instructions for pull requests? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-17T13:27:15Z | changed | Invocation type: — → HookInvocation | [1] 2026-11-17T13:27:15Z | changed | Invocation parameter: HookInvocation → — | [1] 2026-11-13T03:28:35Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/features/pre-tool-use-hook-signature/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/features/pre-tool-use-hook-signature POST: https://latestn.com/dispute/tool/github-copilot/features/pre-tool-use-hook-signature with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/features/pre-tool-use-hook-signature?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What input and output does the GitHub Copilot pre-tool use hook receive and return? Revision 2, last verified 2026-11-20T13:09:05Z. https://latestn.com/tool/github-copilot/features/pre-tool-use-hook-signature (accessed 2026-11-21T10:00:27Z). @misc{LatestN_tool_github_copilot_features_pre_tool_use_hook_signature_r2, title = {What input and output does the GitHub Copilot pre-tool use hook receive and return?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/features/pre-tool-use-hook-signature}}, note = {Revision 2; digest sha256:149808e824071974; last verified 2026-11-20T13:09:05Z; accessed 2026-11-21T10:00:27Z} } 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/features/pre-tool-use-hook-signature