Fetch Geographic Boundary
clipform_fetch_boundaryFetch a GeoJSON boundary polygon for a country, city, or region. Returns simplified GeoJSON ready to use as the 'boundary' prop in the Map composition.
mainlandOnly excludes small islands and overseas territories (e.g. Corsica for France, Hawaii for USA).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Type of place to search for | country |
| query | Yes | Place name (e.g. 'France', 'Paris', 'Tokyo', 'Brazil') | |
| context | Yes | Describe the user's underlying goal in one sentence - not the tool you're calling. | |
| maxPoints | No | Maximum points per polygon ring for simplification (default 500, lower = smaller payload) | |
| mainlandOnly | No | Keep only the largest landmass, excluding small islands and overseas territories |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Resolved place name | |
| geojson | Yes | The Feature GeoJSON as a JSON string - use as the boundary prop in the Map composition | |
| size_kb | Yes | Approximate size of the returned GeoJSON in KB | |
| geometry_type | Yes | ||
| mainland_only | Yes |