

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
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
OpenCode has some built-in tools that you don't need to install yourself. The most important ones for day-to-day coding are:
read, glob, and grep for gathering contextedit, write, and patch for changing filesshell for running commandswebfetch and websearch for fetching pages and searching onlinequestion for asking you clarifying questions (which displays a custom selector UI)skill for loading reusable SKILL.md files (we'll cover these later)A good agent harness makes it seem like the LLM is interacting directly with files and tools on the system, but it's still ultimately just text-in, text-out!
Watch OpenCode use its tools to add a precedence test for Sloperator, meaning mathematical operations happen in the correct order. For example, 2 + 5 * 3 should evaluate to 17, not 21 (multiply first).
Tell OpenCode to run and submit the CLI tests from the project root.