Stage
stageStage file changes into your per-app draft without deploying: writes, exact-match edits, line edits, inserts, a patch, deletes and moves — every commit shape, with optional per-file expect_blob CAS. No deploy, no code change. A patch stages alone, never mixed. Write/delete rules span the whole draft, not one call: a path may be written only once, and a written or deleted path cannot be edited, inserted into, or deleted again — even in a later call. Put the final content in one write, or ship/discard the draft and start over.
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": "<app>"
},
"name": "stage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | The app slug. | |
| edits | No | Exact-match replacements in existing files. Several edits may share a path, but never one written or deleted anywhere in this draft; never mix exact edits with line edits or inserts on one path. | |
| moves | No | File renames. | |
| patch | No | One unified diff, or a `*** Begin Patch` block. A draft carrying a patch carries nothing else: stage it alone, then ship. | |
| writes | No | Full-file writes (new files or replacements). One write per path for the whole draft: a second write to a staged path is refused, even in a later call — put the final content in one write. | |
| deletes | No | Paths to delete. Never for a path written or edited anywhere in this draft. | |
| inserts | No | Insertions after a line (0 is the top). Never for a path written or deleted anywhere in this draft. | |
| line_edits | No | Line-range replacements (inclusive, 1-based read_files numbering). Never for a path written or deleted anywhere in this draft, and never mixed with exact edits on one path. |