Export Layer
export_layerExport a QGIS layer to a file on disk in formats like GeoPackage, Shapefile, GeoJSON, or GeoTIFF. Supports reprojection and optional filter expression for vector layers.
Instructions
Export vector/raster to disk; format from output_path extension (.gpkg, .shp, .geojson, .tif, ...). target_crs (e.g. 'EPSG:4326') reprojects on export. filter_expression (vector only) exports a subset matching a QGIS expression.
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": {
"layer_id": "<layer_id>",
"output_path": "<output_path>"
},
"name": "export_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_id | Yes | ||
| target_crs | No | ||
| output_path | Yes | ||
| filter_expression | No |