opencode_log
Send structured log entries to the OpenCode server, specifying service, level, and message to record events or errors for monitoring and debugging.
Instructions
Write a log entry to the opencode server.
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": {
"service": "<service>",
"level": "<level>",
"message": "<message>"
},
"name": "opencode_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| extra | No | ||
| level | Yes | ||
| message | Yes | ||
| service | Yes | ||
| directory | No | Project directory to target. Optional; defaults to the server default project. |