spawn_session
Start a headless coding agent session to execute an independent task in an isolated working directory, while preserving the host's native approval controls.
Instructions
Start a new headless persisted Claude, Codex, Copilot, Cursor, Gemini, Grok, or OpenCode session for independent work. Provide a complete task and request a reply. Pass an explicit isolated cwd when concurrent edits could collide. The host's native approvals apply; magents does not bypass them. An accepted/starting response means launch was accepted, not completed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Isolated working directory for the new session | |
| agent | Yes | claude, codex, copilot, cursor, gemini, grok, or opencode | |
| message | Yes | Complete independent task, including verification and how to reply |