Actions14
- Session Actions
- Message Actions
- Config Actions
Session → Create
AI-generatedSummary
Create a new OpenCode session
Inputs
- title — Title for the new session
Output shape
The API response representing the created session object, returned as-is from the OpenCode server.
The operation defaults the title to 'New Session' if omitted, and posts to the /session endpoint via the OpenCode API.
Examples
Example 1: Create a session with a custom title
Set the Title parameter to 'My Project Session'. The operation will create a new session titled 'My Project Session'.