1.5 KiB
1.5 KiB
name, description
| name | description |
|---|---|
| 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. |
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:8080/api/tools/script-delete \
-H "Content-Type: application/json" \
-d '{
"files": "string_value"
}'
With Authorization (if required)
curl -X POST http://localhost:8080/api/tools/script-delete \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{
"files": "string_value"
}'
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.