claude_code_execute
Run Claude Code tasks synchronously with configurable model, working directory, timeout, and output format, returning results after completion.
Instructions
Execute Claude Code synchronously with full control over parameters. Returns the result after completion. Common usage: prompt="your task", working_dir="/path/to/project"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model to use (e.g., "sonnet", "opus", "haiku") | |
| prompt | Yes | The task prompt for Claude Code to execute | |
| timeout | No | Timeout in seconds (default: no limit) | |
| working_dir | No | Working directory for the task (default: current directory) | |
| output_format | No | Output format: "text" (default), "json", or "stream-json" | text |
| additional_args | No | Additional CLI arguments to pass to Claude Code | |
| skip_permissions | No | Skip permission checks for automation (default: true) |