Answer: You define tools using the OpenAI function calling format in the "tools" array, and when the model decides to call a tool, the response includes a `tool_calls` array. To continue the conversation after a tool call, include the tool result with role "tool" and the matching tool_call_id. Status: Confirmed Entry: tool/cline/integrations/tool-calling Revision: 1 Digest: sha256:37c0ea102d6f9882 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:06:13Z Last changed: 2026-11-13T03:06:13Z Last verified: 2026-11-20T12:26:33Z Next check: 2026-11-21T12:26:33Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Tool definition format | OpenAI function calling format | [1] | 2026-11-20 Response field for tool calls | tool_calls | [1] | 2026-11-20 Finish reason | tool_calls | [1] | 2026-11-20 Tool result role | tool | [1] | 2026-11-20 Example tool call id | call_abc123 | [1] | 2026-11-20 Example model | anthropic/claude-sonnet-4-6 | [1] | 2026-11-20 Sources: [1] Cline. "Chat Completions". https://docs.cline.bot/api/chat-completions.md Role: primary. Accessed: 2026-11-20T12:26:33Z Quote: "You can define tools that the model can call using the OpenAI function calling format:" (Supports: Tool definition format) Quote: "When the model decides to call a tool, the response includes a `tool_calls` array:" (Supports: Response field for tool calls) Quote: ""finish_reason": "tool_calls"" (Supports: Finish reason) Quote: "{"role": "tool", "tool_call_id": "call_abc123", "content": "{\"temperature\": 62, \"condition\": \"foggy\"}"}" (Supports: Tool result role) Quote: ""id": "call_abc123"" (Supports: Example tool call id) Quote: ""model": "anthropic/claude-sonnet-4-6"" (Supports: Example model) Published: 2026-11-20T06:01:35Z Snapshot SHA-256: 7f9130204cd80fa291dd80d3a244055ec0b0ae854ed73f891c0ca551fd567aa7 (captured 2026-11-13T03:06:12Z) 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:06:13Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:26:33Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:26:33Z Last attempt: 2026-11-20T12:26:33Z Notes and limitations: Extracted automatically from a single official source (section "Tool Calling"). Related: https://latestn.com/tool/cline/integrations/trigger-cline-issue-analysis How do I trigger Cline to analyze a GitHub issue? https://latestn.com/tool/cline/integrations/use-clinepass-outside-cline Can I use ClinePass outside of the Cline IDE extension? https://latestn.com/tool/cline/memory-and-context/drag-and-drop-files How do I drag and drop files into Cline, and which file types are supported? https://latestn.com/tool/cline/integrations/supported-otlp-export-formats Which OTLP export protocols does Cline support? https://latestn.com/tool/cline/integrations/tailscale-setup How do I set up Tailscale for remote access to Cline Kanban? https://latestn.com/tool/cline/integrations/telegram-alerts-setup How do I set up Telegram alerts for Cline supply-chain scan results? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:06:13Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cline/integrations/tool-calling/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/integrations/tool-calling POST: https://latestn.com/dispute/tool/cline/integrations/tool-calling with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cline/integrations/tool-calling?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I use tool calling with the Cline Chat Completions endpoint? Revision 1, last verified 2026-11-20T12:26:33Z. https://latestn.com/tool/cline/integrations/tool-calling (accessed 2026-11-21T09:54:14Z). @misc{LatestN_tool_cline_integrations_tool_calling_r1, title = {How do I use tool calling with the Cline Chat Completions endpoint?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cline/integrations/tool-calling}}, note = {Revision 1; digest sha256:37c0ea102d6f9882; last verified 2026-11-20T12:26:33Z; accessed 2026-11-21T09:54:14Z} } 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/integrations/tool-calling