add_hotspot_interaction
Add an interaction event handler to a hotspot
Wire AI-written script functions to Adventure Game Studio room hotspots without opening the AGS editor.
LABSCO SUMMARY
An agent can write door_Look() perfectly well; what it could not do was attach that function to the door inside a compiled room file. Every write tool takes an outputFile, so the safe pattern is built into the parameters instead of left to your discipline — and the batch tools exist because hotspot edits come in sets, not singles.
An editor for Adventure Game Studio compiled room files (.crm). AI tools already write AGS script text; this reads and writes the binary room data that connects those functions to hotspots, so the hookup step no longer has to happen by hand in the editor.
Node.js 18 or newer; run it with npx ags-mcp-server over stdio. Windows, macOS and Linux. No credentials. It needs .crm files on paths it can read, and the editing tools take an outputFile rather than writing over the original in place. Reads and writes are pure Node with no external AGS binaries. Hotspots and blocks are what it edits today — room objects, walkable areas, regions and character spawn points are on the roadmap, not in the tool list.
One command — npx ags-mcp-server
USE CASES
Find the hotspot, then attach the handler for the event you want it to answer.
Parse the room, list its hotspots, and see which events already have handlers.
Update them for several hotspots at once instead of one call per hotspot.
Export the block, edit it elsewhere, and import it back into a new output file.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
add_hotspot_interactionAdd an interaction event handler to a hotspot
batch_modify_hotspotsBatch modify multiple hotspots in a single operation
export_room_blockExport a specific block from a .crm file
get_room_hotspotsExtract hotspot information from a room
import_room_blockImport/replace a block in a .crm file
list_hotspot_interactionsList all interactions for a specific hotspot
list_room_blocksList all blocks in a .crm file
modify_hotspot_propertiesModify hotspot properties (name, script name, walk-to coordinates, etc.)
read_room_dataParse a .crm file and return structured room data
remove_hotspot_interactionRemove an interaction event handler from a hotspot
update_hotspot_walkto_coordinatesUpdate walk-to coordinates for multiple hotspots
BEFORE YOU INSTALL
11 tools when we connected. Five hotspot tools, including remove_hotspot_interaction and modify_hotspot_properties, are available but missing from the documented tool list.
Both documented clients run the server on your machine.
CONTEXT COST
Rated by the size of the 11 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx ags-mcp-server{
"mcpServers": {
"ags-server": {
"command": "npx",
"args": [
"ags-mcp-server"
]
}
}
}{
"mcpServers": {
"ags-mcp-server": {
"command": "npx",
"args": [
"ags-mcp-server"
],
"type": "stdio"
}
}
}