reload_file
Trigger Lua autorefresh for a file by updating its modification time, applying edits without requiring a full restart.
Instructions
Triggers GMod's Lua autorefresh for a file by bumping its mtime. Best-effort: it covers edits, while new files and autoruns still need a restart.
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": {
"file": "<file>"
},
"name": "reload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes |