terrain.apply
Since next
[editor or disk] Add ops as ONE change, a whole recipe a call; later ops read earlier ones.
Answers ids, stats, a PNG, a changeId. Writes nothing unless it evaluates.
| Title | Add terrain ops |
| Mode | |
| Token cost | about 141 tokens (listed only when its toolset is enabled) |
| Toolset | terrain |
Arguments
| Argument | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
apply | boolean | no | false writes nothing and reports what would change. | ||
at | no | An index, top or bottom | |||
image | boolean | no | false leaves the picture out of the answer. | ||
ops | object[] | yes | {op, id?, ...} | ||
preview | no | false, a view, or an object of terrain.preview's arguments. | |||
terrain | string | no | The .terrain.json file to act on. The project's only terrain when absent. |
Example
An MCP tools/call with the required arguments (placeholders in angle brackets).
{
"name": "terrain.apply",
"arguments": {
"ops": []
}
}