map
Apply a prompt template to multiple inputs in parallel, executing each with configurable tools, model, and sandbox for batch processing.
Instructions
Apply a prompt template to each input in parallel. Use {input} as the placeholder.
Args: prompt_template: Prompt template with {input} placeholder(s). inputs: JSON array of input strings: ["input1", "input2", ...]. sandbox: Named sandbox spec or inline JSON. network: Whether containers have network access (default: true — needed for API calls). tools: Comma-separated list of allowed Claude tools. model: Claude model to use (default: sonnet). timeout: Max execution time per agent in seconds (default: 120). max_concurrency: Max agents running simultaneously (default: 5). system_prompt: System prompt injected via --system-prompt. claude_md: Project instructions written to workspace CLAUDE.md. output_schema: JSON schema string for structured output. mcps: JSON array of MCP server names to attach. effort: Effort level: low, medium, high, max.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt_template | Yes | ||
| inputs | Yes | ||
| sandbox | No | ||
| network | No | ||
| tools | No | Read,Write,Glob,Grep,Bash | |
| model | No | sonnet | |
| timeout | No | ||
| max_concurrency | No | ||
| system_prompt | No | ||
| claude_md | No | ||
| output_schema | No | ||
| mcps | No | ||
| effort | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |