Group an existing workspace into zones
infer_zonesGroups an existing workspace's flows into inferred labelled zones and moves blocks into them; previews changes first unless confirm=true.
Instructions
Reads a workspace's paths, static files and block types, groups its flows into labelled areas and LAYS THE BLOCKS OUT inside them. For a workspace built before zones existed — otherwise the biggest applications, the ones with the most to gain, stay the ones that look the most disorganised. It MOVES blocks, which is the point; nothing else changes (no block is created, deleted or edited, the links and code files are untouched), and every zone it produces is an ordinary one the user can rename, recolour or delete. Requires confirm=true — call without it first to see what it proposes. For a workspace you are BUILDING, pass zones to set_workspace_content/add_to_workspace instead: you know what the areas are, this has to guess.
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": {
"workspaceId": "<workspaceId>"
},
"name": "infer_zones"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to move the blocks. Omit/false previews only. | |
| workspaceId | Yes |