文档
English Docs
Custom Tools

Custom Tools

Extend OpenCode with custom tools.

MCP Servers

The primary way to add custom tools is through MCP (Model Context Protocol) servers.

See MCP Servers for configuration details.

Tool Permissions

Control custom tool access:

{
  "tools": {
    "my-custom-tool": true
  }
}

Per-Agent Access

{
  "agent": {
    "my-agent": {
      "tools": {
        "my-custom-tool": true
      }
    }
  }
}