restore_pawn_script
Restore a Pawn script (.pwn/.inc) from the latest or a specific backup, undoing changes after a bad write.
Instructions
Restore a .pwn/.inc file from its latest backup (or a specific backup). Use this as 'undo' when a write goes wrong.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "restore_pawn_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file to restore | |
| backupName | No | Optional specific backup filename to restore from. If omitted, restores the latest backup. |