Create Claude Code cloud session
claude_create_cloud_sessionCreate a new Claude Code cloud session from a task description and return its session ID and URL for follow-up messages.
Instructions
Create a new Claude Code cloud session via claude --cloud on a pseudo-terminal (the CLI rejects this form when stdout is a pipe). Returns the parsed session_id and session_url. If parsing fails, parsed is false and the CLI output, with terminal controls removed, is in cli. The CLI runs in CLAUDE_MCP_CWD, or in the server process's working directory when that is unset. When Claude Code asks to trust that folder, the call fails with WORKSPACE_NOT_TRUSTED unless CLAUDE_MCP_TRUST_CWD=1.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | Yes | Task description for the new cloud session. | |
| environment_id | No | Cloud environment id (e.g. ccpool_...). Overrides CLAUDE_CLOUD_ENVIRONMENT_ID; omit to use that default. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cli | Yes | CLI output with terminal control sequences removed. | |
| args | Yes | ||
| title | Yes | ||
| parsed | Yes | True when both session_id and session_url were parsed from CLI output. | |
| session_id | Yes | ||
| session_url | Yes | ||
| environment_id | Yes |