Write File
write_fileWrites content to a specified file path on a connected MicroPython device, enabling direct file creation or updates over serial.
Instructions
Write content to a file on the device filesystem.
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_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Destination file path on the device (e.g. "/main.py"). | |
| content | Yes | File content to write. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |