run_geospatial_script
Execute custom Python geospatial scripts in a sandbox with rasterio, numpy, and shapely to process Earth observation data. Returns status, stdout, stderr, and exported variables as JSON.
Instructions
Execute an arbitrary agent-generated Python geospatial processing script.
The sandbox comes pre-loaded with rasterio, numpy (as np), shapely,
and standard mathematical tools.
Args: script_code: Valid Python code string to execute.
Returns: JSON string with script execution status, stdout, stderr, and exported variables.
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": {
"script_code": "<script_code>"
},
"name": "run_geospatial_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |