Answer: You add a custom tool by defining it with the SDK's tool-definition helper (e.g., defineTool in TypeScript, @define_tool in Python, copilot.DefineTool in Go, define_tool in Rust, CopilotTool.DefineTool in .NET, ToolDefinition.create in Java) and then passing it in the session's tools list when creating the session. Status: Confirmed Entry: tool/github-copilot/features/add-custom-tool Revision: 3 Digest: sha256:ca89bd9ff515ba23 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:22:04Z Last changed: 2026-11-18T12:52:45Z (Java tool definition: — → ToolDefinition.create) Last verified: 2026-11-20T12:58:54Z Next check: 2026-11-21T12:58:54Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of TypeScript tool definition | defineTool | [1] | 2026-11-20 TypeScript tools config | tools : [getWeather] | [1] | 2026-11-20 Python tool decorator | @define_tool | [1] | 2026-11-20 Python tools config | tools=[get_weather] | [1] | 2026-11-20 Go tool definition | copilot.DefineTool | [1] | 2026-11-20 Rust tool definition | define_tool | [1] | 2026-11-20 .NET tool definition | CopilotTool.DefineTool | [1] | 2026-11-20 Java tool definition | ToolDefinition.create | [1] | 2026-11-20 Sources: [1] GitHub. "Build your first Copilot-powered app - GitHub Docs". https://docs.github.com/en/copilot/get-started/sdk-quickstart Role: primary. Accessed: 2026-11-20T12:58:54Z Quote: "import { CopilotClient , defineTool } from "@github/copilot-sdk"" (Supports: TypeScript tool definition) Quote: "tools : [getWeather]," (Supports: TypeScript tools config) Quote: "@define_tool( description= "Get the current weather for a city" )" (Supports: Python tool decorator) Quote: "tools=[get_weather])" (Supports: Python tools config) Quote: "getWeather := copilot.DefineTool( "get_weather" , "Get the current weather for a city"" (Supports: Go tool definition) Quote: "let tools = vec! [ define_tool ( "get_weather" , "Get the current weather for a city"" (Supports: Rust tool definition) Quote: "var getWeather = CopilotTool.DefineTool(" (Supports: .NET tool definition) Quote: "var getWeather = ToolDefinition.create( "get_weather" , "Get the current weather for a city"" (Supports: Java tool definition) Snapshot SHA-256: 6a072748c4653d8359b9d63ce22f3098f7e043491f9f3f2a540fe8e36f554221 (captured 2026-11-18T12:52:45Z) 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:52:45Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:58:54Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:58:54Z Last attempt: 2026-11-20T12:58:54Z Notes and limitations: Extracted automatically from a single official source (section "Step 4: add a custom tool"). Related: https://latestn.com/tool/github-copilot/features/agent-intended-uses What are the intended uses of GitHub Copilot agents? https://latestn.com/tool/github-copilot/features/agent-limitations What are the limitations of GitHub Copilot agents? https://latestn.com/tool/github-copilot/features/ai-specific-pitfalls How do I spot AI-specific pitfalls in code generated by GitHub Copilot? https://latestn.com/tool/github-copilot/features/access-shared-spaces How do I access a GitHub Copilot Space that someone shared with me? https://latestn.com/tool/github-copilot/features/accessibility-auditor-guidelines What accessibility guidelines does the GitHub Copilot accessibility auditor custom instruction enforce? https://latestn.com/tool/github-copilot/features/add-copilot-as-pr-reviewer How do I add GitHub Copilot as a reviewer on a pull request? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T12:52:45Z | changed | Java tool definition: — → ToolDefinition.create | [1] 2026-11-18T12:52:45Z | changed | .NET tool definition: — → CopilotTool.DefineTool | [1] 2026-11-18T12:52:45Z | changed | Rust tool definition: — → define_tool | [1] 2026-11-18T12:52:45Z | changed | Go tool definition: — → copilot.DefineTool | [1] 2026-11-18T12:52:45Z | changed | Python tools config: — → tools=[get_weather] | [1] 2026-11-18T12:52:45Z | changed | TypeScript tools config: — → tools : [getWeather] | [1] 2026-11-18T12:52:45Z | changed | TypeScript tool definition: — → defineTool | [1] 2026-11-18T12:52:45Z | changed | Go tool helper: copilot.DefineTool → — | [1] 2026-11-18T12:52:45Z | changed | Registering tools in session: tools : [getWeather] → — | [1] 2026-11-18T12:52:45Z | changed | Tool description: Get the current weather for a city → — | [1] 2026-11-18T12:52:45Z | changed | Tool name: get_weather → — | [1] 2026-11-18T12:52:45Z | changed | TypeScript tool helper: defineTool → — | [1] 2026-11-17T13:14:04Z | changed | Go tool helper: — → copilot.DefineTool | [1] 2026-11-17T13:14:04Z | changed | Registering tools in session: — → tools : [getWeather] | [1] 2026-11-17T13:14:04Z | changed | TypeScript tool helper: — → defineTool | [1] 2026-11-17T13:14:04Z | changed | .NET tool definition: CopilotTool.DefineTool → — | [1] 2026-11-17T13:14:04Z | changed | Rust tool definition: define_tool → — | [1] 2026-11-17T13:14:04Z | changed | Go tool definition: copilot.DefineTool → — | [1] 2026-11-17T13:14:04Z | changed | Session tools option: tools : [getWeather] → — | [1] 2026-11-17T13:14:04Z | changed | TypeScript tool definition: defineTool → — | [1] 2026-11-13T03:22:04Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/features/add-custom-tool/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/add-custom-tool POST: https://latestn.com/dispute/tool/github-copilot/features/add-custom-tool with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/features/add-custom-tool?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I add a custom tool to a GitHub Copilot SDK app? Revision 3, last verified 2026-11-20T12:58:54Z. https://latestn.com/tool/github-copilot/features/add-custom-tool (accessed 2026-11-21T09:52:26Z). @misc{LatestN_tool_github_copilot_features_add_custom_tool_r3, title = {How do I add a custom tool to a GitHub Copilot SDK app?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/features/add-custom-tool}}, note = {Revision 3; digest sha256:ca89bd9ff515ba23; last verified 2026-11-20T12:58:54Z; accessed 2026-11-21T09:52:26Z} } 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/add-custom-tool