Skip to main content
Glama

edit_collision_guard

Prevent editing conflicts by snapshotting files after reading and checking for external modifications before any edit. Works with edit_transaction to ensure safe updates.

Instructions

Two-step guard: record_read (snapshot) after reading, check before editing. Detects external edits. Pairs edit_transaction.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesFile path relative to workspace_dir
actionYesrecord_read: snapshot after reading; check: verify before editing
session_idNoOptional session ID for multi-agent isolation (default: "default")
workspace_dirYesREQUIRED: project root (abs). reindex first if new.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wulun811/LiuHe'

If you have feedback or need assistance with the MCP directory API, please join our Discord server