Export Layer
export_layerExport vector or raster layers to disk in formats like GeoPackage, Shapefile, or GeoTIFF; reproject to a target CRS, and filter vector features using QGIS expressions.
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 |