Answer: The user prompt submitted hook receives a UserPromptSubmittedHookInput and a HookInvocation, and returns a UserPromptSubmittedHookOutput (which may be null or undefined in TypeScript). Status: Confirmed Entry: tool/github-copilot/agents-and-automation/user-prompt-hook-signature Revision: 3 Digest: sha256:9b1a397e407457d7 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:28:39Z Last changed: 2026-11-18T13:04:24Z (TypeScript handler: — → UserPromptSubmittedHandler) Last verified: 2026-11-20T13:09:10Z Next check: 2026-11-21T13:09:10Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Input type | UserPromptSubmittedHookInput | [1] | 2026-11-20 Invocation type | HookInvocation | [1] | 2026-11-20 Output type | UserPromptSubmittedHookOutput | [1] | 2026-11-20 TypeScript handler | UserPromptSubmittedHandler | [1] | 2026-11-20 Sources: [1] GitHub. "User prompt submitted hook - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-sdk/hooks/user-prompt-submitted Role: primary. Accessed: 2026-11-20T13:09:10Z Quote: "input : UserPromptSubmittedHookInput" (Supports: Input type) Quote: "invocation : HookInvocation" (Supports: Invocation type) Quote: "Promise < UserPromptSubmittedHookOutput | null | undefined >" (Supports: Output type) Quote: "type UserPromptSubmittedHandler = ( input : UserPromptSubmittedHookInput , invocation : HookInvocation )" (Supports: TypeScript handler) Snapshot SHA-256: 758bcb5515c6532a256f90821442e9c18a0c0c9c71908f0c34ebf2a90640f294 (captured 2026-11-18T13:04:22Z) 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:24Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:09:10Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:09:10Z Last attempt: 2026-11-20T13:09:10Z Notes and limitations: Extracted automatically from a single official source (section "Hook signature"). Related: https://latestn.com/tool/github-copilot/agents-and-automation/user-prompt-transformed-hook How do I transform a user prompt with a hook in the GitHub Copilot SDK? https://latestn.com/tool/github-copilot/agents-and-automation/user-prompt-transformed-hook-example How do I implement the GitHub Copilot user prompt transformed hook? https://latestn.com/tool/github-copilot/agents-and-automation/user-prompt-transformed-hook-io What input and output does the GitHub Copilot user prompt transformed hook receive and return? https://latestn.com/tool/github-copilot/agents-and-automation/use-secrets-variables How do I use secrets and variables in GitHub Copilot cloud agent? https://latestn.com/tool/github-copilot/agents-and-automation/use-skills-cli How do I use skills in GitHub Copilot CLI? https://latestn.com/tool/github-copilot/agents-and-automation/user-prompt-hook-best-practices What are the best practices for using the GitHub Copilot SDK user prompt submitted hook? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T13:04:24Z | changed | TypeScript handler: — → UserPromptSubmittedHandler | [1] 2026-11-18T13:04:24Z | changed | Python output type: UserPromptSubmittedHookOutput | None → — | [1] 2026-11-16T12:53:09Z | changed | Python output type: — → UserPromptSubmittedHookOutput | None | [1] 2026-11-16T12:53:09Z | changed | Handler type name: UserPromptSubmittedHandler → — | [1] 2026-11-13T03:28:39Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/agents-and-automation/user-prompt-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/agents-and-automation/user-prompt-hook-signature POST: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/user-prompt-hook-signature with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/user-prompt-hook-signature?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What input and output does the GitHub Copilot SDK user prompt submitted hook receive and return? Revision 3, last verified 2026-11-20T13:09:10Z. https://latestn.com/tool/github-copilot/agents-and-automation/user-prompt-hook-signature (accessed 2026-11-21T10:06:42Z). @misc{LatestN_tool_github_copilot_agents_and_automation_user_prompt_hook_signature_r3, title = {What input and output does the GitHub Copilot SDK user prompt submitted hook receive and return?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/agents-and-automation/user-prompt-hook-signature}}, note = {Revision 3; digest sha256:9b1a397e407457d7; last verified 2026-11-20T13:09:10Z; accessed 2026-11-21T10:06:42Z} } 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/agents-and-automation/user-prompt-hook-signature