opencode_session_create
Create a new session for delegating coding tasks. Optionally set a parent session or target a project directory.
Instructions
Create a new session. Optionally provide a parentID to create a child session, and a title.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "opencode_session_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Session title | |
| parentID | No | Parent session ID | |
| 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 |
|---|---|---|---|
| text | Yes | ||
| isError | Yes | ||
| session | Yes | ||
| sessionId | Yes |