Set Canvas Extent
set_canvas_extentSets the map canvas extent using xmin, ymin, xmax, and ymax coordinates, optionally in a specified CRS. Use it to control which area of the map QGIS displays or renders.
Instructions
Set the map canvas extent. Coordinates should be in the specified CRS (default: project CRS).
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": {
"xmin": "<xmin>",
"ymin": "<ymin>",
"xmax": "<xmax>",
"ymax": "<ymax>"
},
"name": "set_canvas_extent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crs | No | ||
| xmax | Yes | ||
| xmin | Yes | ||
| ymax | Yes | ||
| ymin | Yes |