opencode_session_create
Starts a new OpenCode session for multi-turn conversations, returning a session ID for follow-up prompts.
Instructions
Create a new OpenCode session for multi-turn conversations. Returns a session ID that can be used for subsequent prompts.
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 |
|---|---|---|---|
| agent | No | Agent to use | |
| model | No | Model in format provider/model | |
| title | No | Session title | |
| workingDirectory | No | Project directory path (auto-detected if not specified) |