In short.
Cline SDK Tools is a practical guide for developers connecting AI agents to functions and services, but its tool policies default to allowing execution without approval. It shows custom tools using Zod or JSON Schema, registration through ClineCore, Agent and plugins, and controls for approval and visibility. ClineCore offers built-in tools, while direct Agent use requires explicitly supplying tools. Installation, supported versions, costs and licensing are not established by this page. No code was executed or tested.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete selected page at [https://docs.cline.bot/sdk/tools.md]: the documentation-index notice, built-in tools, both custom-tool examples, registration through ClineCore, Agent and plugins, tool policies, the MCP note and the Mintlify hosting notice. Every linked page and repository is excluded. Installation, runtime behavior, approval enforcement, performance and service connectivity remain untested.
The overview
Identity
This is the Tools documentation page for the Cline SDK at [https://docs.cline.bot/sdk/tools.md]. It teaches how to expose functions that an AI model can request during an agent session.
The resource is a programming guide with examples and configuration patterns. It is not a standalone application or a complete agent implementation.
Assessment
The guide gives developers a useful path from understanding tool calls to defining and registering a custom function. Its strongest details are the two schema formats, the distinction between ClineCore and direct Agent use, and the explicit approval defaults.
It is best used alongside an existing SDK setup. The examples omit surrounding configuration and service implementations, so they do not establish a complete working application. Runtime reliability and policy enforcement were not tested.
Users
The guide suits developers building agents that need to read files, search a workspace, execute commands, edit code or call application-specific services. Its database example is relevant to teams exposing internal data through custom tools.
Beginners get a short explanation of the tool-call cycle, but the examples assume familiarity with TypeScript, asynchronous functions and application configuration. Experienced developers get concrete registration and policy syntax, with exact API types left to linked references.
Capabilities
ClineCore can enable built-in tools for reading files, searching code, running shell commands, fetching web content, applying patches, editing files, invoking skills, asking questions and submitting a final answer.
Custom tools use createTool with a name, description, input schema and execution function. The page supports Zod and raw JSON Schema, registration through session configuration or an Agent constructor, and sharing through plugins.
Tool policies can require approval or hide and disable a tool. ClineCore can also register MCP tools alongside built-in and custom tools when MCP support is enabled for the session.
Using it
Requirements
The Zod example imports createTool from @cline/sdk and z from zod. The alternative accepts raw JSON Schema. Both require an implementation of the operation being exposed; the database examples depend on a db.search function that the page does not define.
An agent or ClineCore session must be configured separately. The page does not specify installation commands, supported runtime or package versions, model-provider configuration, credentials or service authentication requirements. The page describes MCP only through ClineCore, which can load MCP settings through its runtime/config extension path; MCP tools are registered when MCP support is enabled for the session. Detailed MCP configuration, and whether direct Agent use supports MCP, are not stated.
Mechanism
The SDK sends tool names, descriptions and input schemas to the model. The model can request a tool call, the SDK executes the corresponding function, and its result is returned to the conversation.
With ClineCore, custom tools enter session configuration through extraTools. With Agent, developers supply the tool list to the constructor. A plugin can register a tool through api.registerTool.
In toolPolicies, autoApprove: true permits execution without asking, autoApprove: false requires approval, and enabled: false hides or disables the tool. Tool names omitted from this configuration default to enabled and auto-approved.
Setup
Define a custom tool with createTool, describe its inputs and implement execute. Then add it to ClineCore's extraTools, supply it in an Agent's tools array, or register it through a plugin.
Configure toolPolicies using the tools' names wherever approval or disabling is required. For example, the page shows automatic approval for reads, requested approval for writes and disabling for deletion.
These are integration steps rather than a complete installation procedure. The page links a tutorial at [https://docs.cline.bot/sdk/guides/creating-custom-tools.md] and exact types at [https://docs.cline.bot/sdk/reference/tools-api.md]; their contents are outside this account.
Example
The search_database example accepts a required query string and an optional numeric limit. Its execution function calls db.search with the query and uses 10 when limit is absent.
The Zod version returns matching results plus their count. The raw JSON Schema version returns the database response directly. Neither schema specifies integer, positive-value or maximum-value constraints for limit.
This illustrates wrapping an application function for model use. It does not demonstrate database connectivity or successful search results: db is undefined in the snippet, and nothing was executed.
Assessment & evidence
Limitations
The page does not explain error handling, retries, cancellation, timeouts, output limits, concurrency or execution isolation. It also does not show approval-interface behavior or detailed MCP configuration.
The documentation describes custom tools as context efficient and deterministic because their implementation is code. It provides no measurements or tests for those claims. A coded function does not, by itself, establish the correctness of model-selected arguments or the reliability of external services.
Direct use of the Agents package excludes the built-in tool suite, so developers choosing that route must supply the tools they need.
Reasoning
The central design choice is how much execution capability to expose. ClineCore offers a built-in suite, while direct Agent construction lets developers provide a specific tool list.
An important implication of the documented default is that omitting a policy does not require approval. Developers who want confirmation before a write or command must explicitly configure the relevant tools. This conclusion follows from the stated policy behavior; enforcement was not tested.
Alternatives
Within the documented SDK, ClineCore suits applications that want access to the built-in suite. The direct Agents package is the documented alternative for supplying only chosen tools.
Zod and raw JSON Schema are alternative ways to describe inputs. Plugins provide a sharing mechanism, while MCP offers another source of tools when enabled. The page does not compare these approaches on performance or maintenance effort, and it supplies no evidence for comparisons with other agent frameworks.
Evidence
The source is the complete Tools page at [https://docs.cline.bot/sdk/tools.md], retained as selected-page.txt and captured at 2026-11-14T18:53:57.384Z. Its source revision is sha256:e6af2d4bfa8753d6f4ae0e2b0f2612ad387e53bfface1f80658c1e86bdef54fb.
The evidence consists of documentation, configuration examples and illustrative code. Linked tutorials, API references, plugin documentation, the documentation index and GitHub examples were not included. There are no execution logs, benchmarks or test results.
Access & freshness
Costs
The page supplies no prices, subscription requirements, usage limits or model-call charges. Whether the SDK and required services are free or paid is unknown from this evidence.
Total operating cost is also unknown. The database example contains no information about model usage, database billing or infrastructure expenses.
Rights
The page provides no software licence, documentation licence or explicit redistribution grant. Rights to reuse or redistribute the SDK, examples or documentation are not established here.
Links to GitHub examples and the notice identifying Mintlify as the documentation platform do not supply those permissions.
Freshness
The supplied page was captured on 14 November 2026. It states no publication date, last-update date or SDK version.
The capture date does not establish compatibility with a particular installed package. API compatibility and subsequent changes are unknown.
Actions
Choose ClineCore if the application needs its built-in tools, or direct Agent construction if it needs a specific supplied tool list. For a first custom integration, adapt the database pattern to an actual application function and define the permitted inputs.
Before relying on the integration, verify package compatibility and licensing, explicitly configure approval policies, and test tool execution and approval behavior in the intended environment. These are follow-up steps; no such verification or execution is established by this page.
