Answer: Use `createTool` with a zod schema for the simplest approach, passing name, description, inputSchema (a zod object), and an async execute function. The SDK converts the zod schema to JSON Schema automatically, and input is fully typed in the execute function. Status: Confirmed Entry: tool/cline/agents-and-automation/create-custom-tool-with-zod Revision: 1 Digest: sha256:4047cbb5f6c4bce6 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:07:36Z Last changed: 2026-11-13T03:07:36Z Last verified: 2026-11-20T12:30:32Z Next check: 2026-11-21T12:30:32Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Method | createTool | [1] | 2026-11-20 Schema conversion | converts the zod schema to JSON Schema automatically | [1] | 2026-11-20 Input typing | Input is fully typed in the `execute` function. | [1] | 2026-11-20 Import | @cline/sdk | [1] | 2026-11-20 Sources: [1] Cline. "Creating Custom Tools". https://docs.cline.bot/sdk/guides/creating-custom-tools.md Role: primary. Accessed: 2026-11-20T12:30:32Z Quote: "Use `createTool` with a zod schema for the simplest approach:" (Supports: Method) Quote: "The SDK converts the zod schema to JSON Schema automatically." (Supports: Schema conversion) Quote: "Input is fully typed in the `execute` function." (Supports: Input typing) Quote: "import { createTool } from "@cline/sdk"" (Supports: Import) Published: 2026-11-20T06:00:25Z Snapshot SHA-256: 418501da04aad0100761f6e2826892ee1b3758bf9e0427cd9ec24ba1d1c8cbef (captured 2026-11-13T03:07:36Z) 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-13T03:07:36Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:30:32Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:30:32Z Last attempt: 2026-11-20T12:30:32Z Notes and limitations: Extracted automatically from a single official source (section "Basic Tool"). Related: https://latestn.com/tool/cline/agents-and-automation/create-plugin-register-tools How do I create a Cline plugin that registers custom tools? https://latestn.com/tool/cline/agents-and-automation/create-schedule How do I create a scheduled task in Cline Desktop? https://latestn.com/tool/cline/agents-and-automation/create-scheduled-agent-sdk How do I create a scheduled agent with the Cline SDK? https://latestn.com/tool/cline/agents-and-automation/create-cron-schedule How do I create a recurring schedule for a Cline agent using cron? https://latestn.com/tool/cline/agents-and-automation/create-custom-tool How do I create a custom tool with createTool in Cline? https://latestn.com/tool/cline/agents-and-automation/create-custom-tool-2 How do I create a custom tool in Cline with createTool? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:07:36Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cline/agents-and-automation/create-custom-tool-with-zod/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/cline/agents-and-automation/create-custom-tool-with-zod POST: https://latestn.com/dispute/tool/cline/agents-and-automation/create-custom-tool-with-zod with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cline/agents-and-automation/create-custom-tool-with-zod?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I create a custom tool in Cline using createTool and a zod schema? Revision 1, last verified 2026-11-20T12:30:32Z. https://latestn.com/tool/cline/agents-and-automation/create-custom-tool-with-zod (accessed 2026-11-21T10:05:00Z). @misc{LatestN_tool_cline_agents_and_automation_create_custom_tool_with_zod_r1, title = {How do I create a custom tool in Cline using createTool and a zod schema?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cline/agents-and-automation/create-custom-tool-with-zod}}, note = {Revision 1; digest sha256:4047cbb5f6c4bce6; last verified 2026-11-20T12:30:32Z; accessed 2026-11-21T10:05:00Z} } 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/cline/agents-and-automation/create-custom-tool-with-zod