session_create
Create a gateway session record for a provider CLI and return a plain UUID for session bookkeeping. Use this when starting a new session through the gateway.
Instructions
Create a gateway session record for a provider. NOTE: this is gateway bookkeeping (a plain UUID), not a provider-native session; Codex resume needs a real Codex UUID.
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": {
"cli": "<cli>"
},
"name": "session_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cli | Yes | Provider type (claude|codex|gemini|grok|mistral|devin|cursor|grok-api) | |
| description | No | Session description | |
| setAsActive | No | Set as active session |