create_layout
Creates a new page layout with a map frame, sized and margined for exporting to PDF or PNG.
Instructions
Create a new layout in the project with a map frame already added. After creation, call export_layout() to export it as PDF/PNG/etc.
Args: name: Layout name (default: "Layout") map_name: Map to put in the frame — uses active map if empty width: Page width (default: 11) height: Page height (default: 8.5) units: Page units — INCH, CENTIMETER, MILLIMETER, POINT (default: INCH) margin: Frame margin from page edge in page units (default: 0.5)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Layout | |
| units | No | INCH | |
| width | No | ||
| height | No | ||
| margin | No | ||
| map_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |