Move OpenCode session
opencode_session_moveChange the working directory of an existing session by providing its session ID and new absolute directory path.
Instructions
Change the working directory of an existing session.
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": {
"sessionID": "<sessionID>",
"directory": "<directory>"
},
"name": "opencode_session_move"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | Yes | New absolute working directory | |
| sessionID | Yes |