opencode_end_session
Close active opencode sessions after task completion to free resources and prevent idle sessions from remaining open.
Instructions
Close an opencode session and free its resources.
Call this when a task is complete. Do not leave sessions open indefinitely.
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": {
"session_id": "<session_id>"
},
"name": "opencode_end_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Session ID to close. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||