guest_write_file
Writes base64-encoded content to an absolute path inside a Hyper-V guest VM. Requires overwrite confirmation for existing files and can create parent directories.
Instructions
Write base64 content to an absolute guest path. Existing files require overwrite=true and confirm_path equal to guest_path.
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": {
"vm_name": "<vm_name>",
"guest_path": "<guest_path>",
"content_base64": "<content_base64>"
},
"name": "guest_write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm_name | Yes | ||
| overwrite | No | ||
| guest_path | Yes | ||
| confirm_path | No | ||
| create_parent | No | ||
| content_base64 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||