Describe sources
describe_sourcesList source layers and fields in a MapLibre style, check each layer's source, source layer, and field references exist. Use before writing layers against unknown data or when a layer draws nothing.
Instructions
Reads the metadata of every source in a MapLibre style (TileJSON, PMTiles headers and GeoJSON data) and lists the source layers and fields each one provides. Then checks that every layer uses a source, source layer and fields that exist. Use it before writing layers against data you do not know, and when a layer draws nothing. Pass the style as an object, a URL or a file path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL of a style JSON document. | |
| path | No | Path to a style JSON file, relative to the directory the server runs in. | |
| style | No | The style as a JSON object. |