tool_action
Presses a button control on a Dungeondraft tool, including batch actions like Copy, Paste, Mirror, Delete, and Merge Walls that act on the current selection.
Instructions
Press a button control on a Dungeondraft tool.
This is the escape hatch for capabilities with no dedicated tool. Notably
SelectTool's batch operations, which act on the current selection (use
select_elements first): 'Copy', 'Paste', 'Mirror', 'Lock', 'Separate',
'Merge Walls', 'Make Prefab', 'Delete'.
Prefer a purpose-built tool where one exists — they validate input and
return ids. Call list_tool_controls to see what a tool offers.
Buttons that need a selection will report being disabled rather than
silently doing nothing.
Merge Walls can join compatible manual walls (draw_wall type=1). Walls
with mounted doors/windows are refused because native merging deletes
portals on absorbed walls. Generic actions do not enter bridge undo history.
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": {
"tool": "<tool>",
"control": "<control>"
},
"name": "tool_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| control | Yes |