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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |