Get Map Info
This tool exports information about a map in your ArcGIS Pro project to a JSON file. Use it to capture map structure, layers, and other metadata for use in AI workflows or documentation.
This tool does not use AI, instead it uses plain ol arcpy to make your map context actionable FOR ai tools. For example, try asking any LLM for an arcpy script to do an analysis, then try again after including the output of this tool as additional context... you'll likely see much better results.
Fun fact, this is the same method used in the generate python code tool to send information about selected layers to the AI.
Usage
- Open ArcGIS Pro and add the
.pyt
toolbox if you haven't already. - Open the Get Map Info tool.
- Fill in the parameters as described below.
- Click Run. The tool will write map info to the specified JSON file.
Parameters
Name | Type | Required | Description |
---|---|---|---|
Map | Map | No | The map to get info from. If not specified, uses the current map. |
Output JSON Path | String (Path) | Yes | Path to the output JSON file where map info will be saved. |
Tips
- If you leave the Map parameter blank, the tool will use the active map in your project.
- The output JSON can be used as context for AI tools or for documentation.