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.
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 |