Render the floor plan
render_planRender a floor plan as a PNG image, framing a chosen region or room with adjustable padding, grid overlay, and background opacity for comparison.
Instructions
PNG of the floor plan, exactly as the user sees it. region=[[minx,miny],[maxx,maxy]] frames a place — it is fitted to the image's aspect by growing the short side, never by cropping, so everything asked for is in the picture — or room=<id|name> with pad cm (default 30) frames a room without working the rectangle out. bg=0..1 overlays the background image to compare with the reference. Keep w/h small to save tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | Height px (default 480, max 2048) | |
| w | No | Width px (default 640, max 2048) | |
| bg | No | Background image opacity for this render (e.g. 0.5 to compare the drawing with the scanned reference; 0 hides it) | |
| pad | No | With `room`: margin around it, cm (default 30) | |
| grid | No | Draw the grid (default true) | |
| room | No | Instead of `region`: a room id or name to frame | |
| region | No | Plan region `[[minx,miny],[maxx,maxy]]`; default fits the drawing. The region is fitted to the image's aspect and grown on the short side — never cropped — so everything asked for is in the picture |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mimeType | Yes | Type of the image in the content (image/png) |