p2p_file_write
Writes or updates a file in a P2P Hyperdrive, streaming changes to connected peers automatically so shared state stays in sync.
Instructions
Schreibt oder aktualisiert eine Datei im P2P-Hyperdrive. Die Änderung wird automatisch an verbundene Peers gestreamt.
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": {
"filePath": "<filePath>",
"content": "<content>"
},
"name": "p2p_file_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Der Hex-Key des Drives (optional falls nur ein Drive aktiv ist). | |
| content | Yes | Der Textinhalt der Datei. | |
| filePath | Yes | Virtueller Pfad im Drive (z. B. "/context/task.md" oder "/state.json"). |