Answer: You create a custom tool by calling `createTool` with a name, description, inputSchema (either a zod schema for type-safe tools or raw JSON Schema), and an async execute function. The tool is then registered and can be shared. Status: Confirmed Entry: tool/cline/agents-and-automation/create-custom-tool-2 Revision: 1 Digest: sha256:b79a04483956db60 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:07:53Z Last changed: 2026-11-13T03:07:53Z Last verified: 2026-11-20T12:31:15Z Next check: 2026-11-21T12:31:15Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of function | createTool | [1] | 2026-11-20 schema option | inputSchema | [1] | 2026-11-20 execute function | async execute(input) | [1] | 2026-11-20 alternative schema | raw JSON Schema | [1] | 2026-11-20 Sources: [1] Cline. "Tools". https://docs.cline.bot/sdk/tools.md Role: primary. Accessed: 2026-11-20T12:31:15Z Quote: "Use `createTool` with a zod schema for type-safe tools:" (Supports: function) Quote: "inputSchema: z.object({" (Supports: schema option) Quote: "async execute(input) {" (Supports: execute function) Quote: "`createTool` also accepts raw JSON Schema if you prefer:" (Supports: alternative schema) Published: 2026-11-20T06:00:24Z Snapshot SHA-256: e6af2d4bfa8753d6f4ae0e2b0f2612ad387e53bfface1f80658c1e86bdef54fb (captured 2026-11-13T03:07:53Z) 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:53Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:31:15Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:31:15Z Last attempt: 2026-11-20T12:31:15Z Notes and limitations: Extracted automatically from a single official source (section "Custom Tools with createTool"). Related: https://latestn.com/tool/cline/agents-and-automation/create-custom-tool-with-zod How do I create a custom tool in Cline using createTool and a zod schema? 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/clinecore-vs-agent When should I use ClineCore instead of the Agent class in Cline? 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/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:07:53Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cline/agents-and-automation/create-custom-tool-2/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-2 POST: https://latestn.com/dispute/tool/cline/agents-and-automation/create-custom-tool-2 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-2?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I create a custom tool in Cline with createTool? Revision 1, last verified 2026-11-20T12:31:15Z. https://latestn.com/tool/cline/agents-and-automation/create-custom-tool-2 (accessed 2026-11-21T10:06:37Z). @misc{LatestN_tool_cline_agents_and_automation_create_custom_tool_2_r1, title = {How do I create a custom tool in Cline with createTool?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cline/agents-and-automation/create-custom-tool-2}}, note = {Revision 1; digest sha256:b79a04483956db60; last verified 2026-11-20T12:31:15Z; accessed 2026-11-21T10:06:37Z} } 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-2