spawn_agent
Spawn an autonomous Codex subagent to work on tasks in your current directory. Provide a prompt with full instructions and get back the agent's final response.
Instructions
Spawn a Codex agent to work inside the current working directory.
The server resolves the working directory via ``os.getcwd()`` so it inherits
whatever environment the MCP process currently has.
Args:
prompt: All instructions/context the agent needs for the task.
Returns:
The agent's final response (clean output from Codex CLI).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |