Create Session
session_createCreates a new conversation session in a workspace using a workspace ID or project directory path, enabling MCP clients to start chat with an AI coding agent.
Instructions
Create a new conversation session in a workspace. A directory path or workspace ID can be used.
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": {
"workspace": "<workspace>"
},
"name": "session_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model name (e.g. claude-opus-4, gpt-4o) | |
| provider | No | Backend provider (only used when auto-starting a workspace) | |
| sessionId | No | Custom session ID (auto-generated if omitted) | |
| workspace | Yes | Workspace ID or project directory path |