Write a board file
pico_file_writeCreate or overwrite a file on a connected MicroPython or CircuitPython board, automatically creating missing parent directories and accepting UTF-8 or base64 content up to 8 MB.
Instructions
Create or overwrite one board file, creating missing parent directories. content may be UTF-8 text or base64 and is limited to 8 MB decoded.
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": {
"board_id": "<board_id>",
"path": "<path>",
"content": "<content>"
},
"name": "pico_file_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path on the board filesystem, relative to its root. | |
| content | Yes | ||
| board_id | Yes | Stable board UID returned by pico_boards_list, or its current serial device path. | |
| encoding | No | utf8 |