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

  1. Open ArcGIS Pro and add the .pyt toolbox if you haven't already.
  2. Open the Get Map Info tool.
  3. Fill in the parameters as described below.
  4. Click Run. The tool will write map info to the specified JSON file.

Parameters

NameTypeRequiredDescription
MapMapNoThe map to get info from. If not specified, uses the current map.
Output JSON PathString (Path)YesPath to the output JSON file where map info will be saved.

Tips