get_tool_layer
Read the draw layer for a specified map tool and return the valid layer range, including extra layers, so you can place elements at the correct stacking depth.
Instructions
Read which layer a tool draws on, and the range of layers that exist.
Layers stack: lower numbers sit under higher ones. Values run from -500 to
900 in steps of 100 (`min`, `max` and `step` in the response), plus
`extra_layers` such as the Unofficial Patch's 1100 when present. 100 is the
default for every tool except MaterialBrush, which starts at -400 so floors
sit under everything.
tool: e.g. "ObjectTool", "PathTool", "PatternShapeTool". A tool without
layers is refused, and the error lists the ones that have them.
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>"
},
"name": "get_tool_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes |