agent_send
Submits a coding instruction to Claude Code, Codex, or Antigravity for asynchronous background execution, returning a task ID for tracking.
Instructions
Send an instruction to Claude Code or Codex CLI/SDK. Executes asynchronously in background and returns task_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for execution (default: current directory) | |
| agent | Yes | Target agent: 'claude', 'codex', or 'antigravity' (agy CLI) | |
| model | No | Specific model name (e.g. 'sonnet', 'opus' for Claude; 'o3' for Codex) | |
| topic | No | Topic or feature name (e.g. 'presence', 'auth') | |
| engine | No | Execution engine: 'cli' (default) or 'sdk' | |
| prompt | Yes | Instruction or prompt text for the agent | |
| project | No | Directory name of the project inside the workspace | |
| taskType | No | Role or nature of task | |
| sessionId | No | Specific internal session ID to resume | |
| timeoutMs | No | Execution timeout in milliseconds (default: 180000ms / 3min) | |
| forceNewSession | No | Set true to force create a new session instead of reusing |