render_vmf_plan
Render a dimensioned floor plan from a .vmf to show where rooms, doorways, and measured distances are, returning both an image and SVG from one description.
Instructions
A dimensioned floor plan of a .vmf: a horizontal cut taken above the floor, with room outlines, floor areas, the width written on every doorway, a grid, a scale bar and a north arrow. render_vmf_view says what a place looks like from somewhere; this says WHERE things are, and it is the drawing you can measure with. Returns the picture to look at and the SVG to keep, both from one description, so the two cannot disagree. Anything entirely above or below the cut is not on the drawing -- a raised walkway, a sunken pit -- so the cut height is always reported.
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": {
"path": "<path>"
},
"name": "render_vmf_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | No | Also return the SVG text. It can be long. | |
| cutZ | No | Height of the cut. Default: 48 units above the lowest floor a person can stand on. | |
| grid | No | Grid spacing, and the scale bar's length. | |
| path | Yes | Path to the .vmf, absolute or relative to the repo root. | |
| rooms | No | Outline rooms and dimension the doorways. | |
| seeds | No | ||
| width | No | ||
| height | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | Yes | ||
| cutZ | Yes | ||
| path | Yes | ||
| notes | Yes | ||
| rooms | Yes | ||
| portals | Yes | ||
| pngBytes | Yes | ||
| pageWidth | Yes | ||
| roomCount | Yes | ||
| brushesCut | Yes | ||
| pageHeight | Yes | ||
| unitsPerPixel | Yes | ||
| sectionAreaUnits | Yes |