msf_file_write
Writes text or base64-encoded binary to a local file at a chosen byte offset, creating missing directories and files, and supports successive chunk writes to build large resource scripts and modules.
Instructions
Write text or {$binary: base64} at a local file byte offset.
Creates missing parent directories and files. truncate=true clears an existing file first; use only on the first chunk when replacing a file. Supports arbitrary-sized resource scripts, modules, and import artifacts by writing successive chunks at next_offset. Paths are local to the MCP host.
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>",
"data": "<data>"
},
"name": "msf_file_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| path | Yes | ||
| offset | No | ||
| truncate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||