Skip to content

Commit 6708c3f

Browse files
authored
docs: mark tools config as deprecated (anomalyco#17951)
1 parent ba22976 commit 6708c3f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

packages/web/src/content/docs/agents.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,11 @@ The model ID in your OpenCode config uses the format `provider/model-id`. For ex
366366

367367
---
368368

369-
### Tools
369+
### Tools (deprecated)
370370

371-
Control which tools are available in this agent with the `tools` config. You can enable or disable specific tools by setting them to `true` or `false`.
371+
`tools` is **deprecated**. Prefer the agent's [`permission`](#permissions) field for new configs, updates and more fine-grained control.
372+
373+
Allows you to control which tools are available in this agent. You can enable or disable specific tools by setting them to `true` or `false`. In an agent's `tools` config, `true` is equivalent to `{"*": "allow"}` permission and `false` is equivalent to `{"*": "deny"}` permission.
372374

373375
```json title="opencode.json" {3-6,9-12}
374376
{
@@ -392,7 +394,7 @@ Control which tools are available in this agent with the `tools` config. You can
392394
The agent-specific config overrides the global config.
393395
:::
394396

395-
You can also use wildcards to control multiple tools at once. For example, to disable all tools from an MCP server:
397+
You can also use wildcards in legacy `tools` entries to control multiple tools at once. For example, to disable all tools from an MCP server:
396398

397399
```json title="opencode.json"
398400
{

0 commit comments

Comments
 (0)