Skip to main content
Glama

spawn_run

Start a new external coding-agent run with specified backend and role, returning immediately to allow parallel task execution.

Instructions

Start a new external coding-agent run and return immediately.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
backendYesBackend to execute the run. Supported values are "codex", "claude_code", and "remote_a2a".
roleYesSupervisor role for this run: planner, worker, or reviewer.
promptNoPrimary instruction for the coding agent run.
input_messageNoStructured input message for multi-part or A2A-compatible runs.
cwdYesAbsolute working directory where the agent should run and where artifacts are stored.
session_modeYesUse "new" to create a fresh session or "resume" to continue an existing one.
session_idNo
profileNoOptional path to a profile/persona/job-description file. Leave blank unless explicitly instructed to use a profile.
output_schemaNoOptional JSON Schema for structured final output from the run.
metadataNoOptional orchestration metadata for task/step correlation. It is stored but not interpreted by the MCP server.
backend_configNoOptional backend-specific configuration, such as remote_a2a agent_url and auth headers.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dufangshi/orchestration-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server