AGENT SKILL
script-delete
Delete the script file(s). Does AssetDatabase.Refresh() and waits for Unity compilation to complete before reporting results. Use 'script-read' tool to read existing script files first.
- License 许可
- MIT
- 最近更新
- 2026-04-12
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- script-delete
- description
- Delete the script file(s). Does AssetDatabase.Refresh() and waits for Unity compilation to complete before reporting results. Use 'script-read' tool to read existing script files first.
03 SKILL.md 正文
Script / Delete
Delete the script file(s). Does AssetDatabase.Refresh() and waits for Unity compilation to complete before reporting results. Use 'script-read' tool to read existing script files first.
How to Call
HTTP API (Direct Tool Execution)
Execute this tool directly via the MCP Plugin HTTP API:
curl -X POST http://localhost:50187/api/tools/script-delete \
-H "Content-Type: application/json" \
-d '{
"files": "string_value"
}'
With Authorization (if required)
curl -X POST http://localhost:50187/api/tools/script-delete \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{
"files": "string_value"
}'
The token is stored in the file:
UserSettings/AI-Game-Developer-Config.jsonUsing the format:"token": "YOUR_TOKEN"
Input
| Name | Type | Required | Description |
|---|---|---|---|
files |
any |
Yes | File paths to the files. Sample: "Assets/Scripts/MyScript.cs". |
Input JSON Schema
{
"type": "object",
"properties": {
"files": {
"$ref": "#/$defs/System.String[]",
"description": "File paths to the files. Sample: \u0022Assets/Scripts/MyScript.cs\u0022."
}
},
"$defs": {
"System.String[]": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"files"
]
}
Output
This tool does not return structured output.