

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 2
click for more info
Not enough gems
Cost: 6 gems
1: Tools
incomplete
2: Built-in Tools
incomplete
3: Specialized Tools
incomplete
4: Custom Tools
incomplete
5: Create a Custom Tool
incomplete
6: Tool Permissions
incomplete
7: Sandboxing
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Plugins can register custom tools when OpenCode's built-in tools can't handle a specific job.
Once a custom tool is set up, it participates in the same tool system as the built-ins.
Custom tools are useful for specialized actions the agent performs repeatedly:
The main benefit is a clean, task-specific interface instead of forcing the agent to reinvent the same script every time it needs that action.
Every OpenCode custom tool comes from a plugin. Defining a new tool for a project/repo just means adding a small plugin file under .opencode/plugins/.