delete_directory_script
Delete a Lua script from an outside project's scripts/ or drafts/ folder, optionally archive it first, and sync so remote editors remove missing files.
Instructions
Delete a Lua script from an outside folder project's scripts/ or drafts/ folder, optionally archiving it first.
Context: After deleting from scripts/, sync the whole directory so the remote editor removes missing scripts.
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": {
"directory": "<directory>",
"file_name": "<file_name>"
},
"name": "delete_directory_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sync | No | ||
| archive | No | ||
| directory | Yes | ||
| file_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||