opencode_config_update
Update OpenCode configuration by passing a partial config object with fields to modify. Optionally specify a project directory to target that project.
Instructions
Update the opencode configuration. Pass a partial config object with fields to update.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"config": "<config>"
},
"name": "opencode_config_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | Partial config object with fields to update | |
| directory | No | Absolute path to the project directory. When provided, the request targets that project. If omitted, the OpenCode server uses its own working directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| text | Yes | ||
| isError | Yes |