iterate_app
Dispatch a natural-language change to an app and have it applied for you.
A repair agent reproduces, applies the change to the app deployed in its
sandbox VM, redeploys, and verifies. Works on any app you own that has a git
source. Poll get_app_build_status(app_id) for the live thread status
(queued -> working -> done/failed). Persisting the change back to your git
repo (via a connected GitHub integration) is a follow-up capability.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app_id": "<app_id>",
"instruction": "<instruction>"
},
"name": "iterate_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | App ID (from create_app or create_app_from_prompt). | |
| api_key | No | MCP API key | |
| thread_id | No | Optional prior thread id to continue an existing request. | |
| instruction | Yes | What to change in plain language. Examples: 'make the header green', 'add a CSV export button', 'fix the broken submit button'. A repair agent applies the change to the app in its sandbox VM and redeploys. | |
| session_token | No | Session token | |
| context_envelope | No | Optional context about where the change applies (route, page, etc.). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||