Start a local CLI subagent
start_agentLaunch a subagent with a self-contained prompt in a specified working directory, returning an invocation ID you can use later with wait_agent to monitor the outcome.
Instructions
Start one subagent and return its in-memory invocation ID without waiting for completion.
Use wait_agent with the returned ID to observe the invocation. The launched provider may read, write, or run commands in cwd subject to its native permission controls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Absolute existing directory where the subagent runs. | |
| prompt | Yes | Complete, self-contained task for the subagent. | |
| provider | Yes | Local subagent provider to launch. | |
| session_id | No | Provider session ID returned by an earlier finished invocation. | |
| timeout_seconds | No | Maximum provider runtime in seconds. | |
| provider_options | No | Explicit provider-native options. Omit to inherit the provider's own settings; supported keys depend on the selected provider. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| invocation_id | Yes |