write_text_file
Write text files with automatic parent directory creation and optional UTF-8 encoding, enabling batch scripts, export manifests, and custom configurations for 3ds Max workflows.
Instructions
写入一个文本文件(自动创建父目录,可选 UTF-8 编码)。用于生成批处理脚本、导出清单、自定义配置。 [English] Write a text file, creating parent folders automatically (optional UTF-8). Use it to emit batch scripts, export manifests or custom configs.
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": {
"path": "<path>",
"content": "<content>"
},
"name": "write_text_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 文件绝对路径。 | Absolute file path. | |
| append | No | 是否追加而非覆盖,默认否。 | Append instead of overwrite, default false. | |
| content | Yes | 要写入的文本内容。 | Text content to write. | |
| encoding | No | 编码,默认 utf-8;可选 ansi(跟随系统代码页)。 | Encoding, default utf-8; use ansi for the system code page. | utf-8 |