AGENT SKILL

script-update-or-create

Updates or creates script file with the provided C# code. Does AssetDatabase.Refresh() at the end. Provides compilation error details if the code has syntax errors. Use 'script-read' tool to read existing script files first.

License 许可
MIT
所属仓库
devwinsoft/devian
最近更新
2026-04-12
Stars
★ 0
Forks
0

01 前言 Front Matter

name
script-update-or-create
description
Updates or creates script file with the provided C# code. Does AssetDatabase.Refresh() at the end. Provides compilation error details if the code has syntax errors. Use 'script-read' tool to read existing script files first.

03 SKILL.md 正文

Script / Update or Create

Updates or creates script file with the provided C# code. Does AssetDatabase.Refresh() at the end. Provides compilation error details if the code has syntax errors. 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-update-or-create \
  -H "Content-Type: application/json" \
  -d '{
  "filePath": "string_value",
  "content": "string_value"
}'

With Authorization (if required)

curl -X POST http://localhost:50187/api/tools/script-update-or-create \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -d '{
  "filePath": "string_value",
  "content": "string_value"
}'

The token is stored in the file: UserSettings/AI-Game-Developer-Config.json Using the format: "token": "YOUR_TOKEN"

Input

Name Type Required Description
filePath string Yes The path to the file. Sample: "Assets/Scripts/MyScript.cs".
content string Yes C# code - content of the file.

Input JSON Schema

{
  "type": "object",
  "properties": {
    "filePath": {
      "type": "string",
      "description": "The path to the file. Sample: \u0022Assets/Scripts/MyScript.cs\u0022."
    },
    "content": {
      "type": "string",
      "description": "C# code - content of the file."
    }
  },
  "required": [
    "filePath",
    "content"
  ]
}

Output

This tool does not return structured output.

04 同仓库更多 Skills