get_script_history
Access the edit history of any script to recover code lost in previous updates, each entry includes timestamp, prompt, and full code snapshot.
Instructions
Get the MCP edit history of a specific script — all past versions written via update_script, most recent last. Use this to recover code that was accidentally wiped by a previous edit. Each entry shows the timestamp, the user prompt that triggered the edit, and the full code snapshot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of most-recent entries to return. Defaults to 10. Pass 0 to return all entries. | |
| target | Yes | Object name (e.g., "Player") or "cell:CellName" for cell scripts | |
| cellName | No | Optional: restrict object lookup to this cell when the same object name exists in multiple cells. | |
| scriptName | No | Script name on the object/cell. Defaults to "Main". |