Scaffold location tree
scaffold_locationsCreate a whole location tree (buildings, floors, rooms, storage places) in one call, with the same contract as scaffold_categories: without confirm: true it is a dry run that writes nothing (existing same-name locations at the same position are reused, never duplicated); the SAME call with confirm: true commits the tree atomically. parentName references another entry in the same call (existing parents included as entries are reused). Each location is one explicit entry: a range such as "rooms 201 to 210" is ten entries. At most 200 locations per call. Requires the manager role. Idempotent: a repeated commit reuses every node.
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": {
"locations": "<locations>"
},
"name": "scaffold_locations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | true commits the plan; absent or false = dry run, nothing written | |
| locations | Yes | The whole tree as a flat list, parents referenced by name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preview | No | True = dry run, NOTHING was written; the same call with confirm: true commits it | |
| summary | No | Counts: create, reuse — preview mode | |
| committed | No | True = the plan was executed | |
| locations | No | Per-location verdicts (preview) or created/reused rows (commit) | |
| instruction | No | Preview mode: what the same call with confirm: true would do |