diff options
| author | Dax Raad <[email protected]> | 2025-08-11 23:36:31 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-08-11 23:37:09 -0400 |
| commit | 1ec71e419b4ed24af77d8ffe197390927dc074e9 (patch) | |
| tree | e1fbd8421acb6767eb068a08ea74cfcec05e55a1 /packages/web | |
| parent | 5fbbdcaf643cfa47e297a33d6b7b1ff90c1f6ae0 (diff) | |
| download | opencode-1ec71e419b4ed24af77d8ffe197390927dc074e9.tar.gz opencode-1ec71e419b4ed24af77d8ffe197390927dc074e9.zip | |
support wildcard matching tool names in config
Diffstat (limited to 'packages/web')
| -rw-r--r-- | packages/web/src/content/docs/docs/agents.mdx | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/packages/web/src/content/docs/docs/agents.mdx b/packages/web/src/content/docs/docs/agents.mdx index 80e1867d7..bcb0eca2a 100644 --- a/packages/web/src/content/docs/docs/agents.mdx +++ b/packages/web/src/content/docs/docs/agents.mdx @@ -318,6 +318,22 @@ Control which tools are available in this agent with the `tools` config. You can } ``` +You can also use wildcards to control multiple tools at once. For example, to disable all tools from an MCP server: + +```json title="opencode.json" +{ + "agent": { + "readonly": { + "tools": { + "mymcp_*": false, + "write": false, + "edit": false + } + } + } +} +``` + If no tools are specified, all tools are enabled by default. --- @@ -371,7 +387,7 @@ For example, with OpenAI's reasoning models, you can control the reasoning effor "agent": { "deep-thinker": { "description": "Agent that uses high reasoning effort for complex problems", - "model": "openai/gpt-5-turbo", + "model": "openai/gpt-5-turbo", "reasoningEffort": "high", "textVerbosity": "low" } |
