host_files
Manage text files on a PC, laptop, or server by listing, reading, writing, or deleting files in C:.
Instructions
Work with the text files of a PC, laptop or server, the ones its Text Editor opens and dir lists: list, read, write (creates or replaces) or delete a file in C:.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | File name in C:\, for example `notes.txt`. Required except for `list`. | |
| text | No | Text to write. Required for `write`. | |
| action | No | `list` (default), `read`, `write` or `delete`. | list |
| device | Yes | PC, laptop or server. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | The file's text, for `read`. | |
| files | Yes | The files in C:\ after the action. | |
| action | Yes | ||
| device | Yes |