A Map Beside the Chat: An ArcGIS Mod for Claude Code
Claude Code now has mods . A mod is a plugin with a hooks module: a TypeScript file whose functions Claude Code calls when events occur. A mod can add tools for Claude, slash commands, and panes beside the chat. When I read that, I had one question. Can I put a live ArcGIS map next to Claude, and can Claude draw on it while I talk to it? The answer is yes, with one interesting detour. In this post, I show the mod, explain how the parts connect, and tell you what does not work yet. The source is on GitHub: mraad/claude-mod-map . Markers in seven cities, labels, a geodesic route and a dark basemap, all placed with the mod's tools. What the mod does The mod gives Claude six tools. Each tool changes a map that uses the ArcGIS Maps SDK for JavaScript 5.2. add_graphic adds a point, a line or a polygon. The input is GeoJSON geometry and an optional ArcGIS symbol. add_layer adds a feature, GeoJSON, GeoParquet, tile, vector tile, imagery or portal item layer. It ta...