p2p_transfer_start
Recommended only when large files need to be transferred between the local machine (the Agent execution environment) and a connected remote computer. Start the remote p2p-cli bootstrap and wait only until it registers for negotiation. Returns private shell and PowerShell bootstrap scripts: execute the one matching the Agent execution environment to download and start the local component. Bootstrap output includes executable: use that absolute path for status, cp and stop locally. File bytes use a direct encrypted peer connection, never this MCP service. Repeated calls reuse the active connection for this client; stop the existing P2P connection before starting a new one.
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": {
"client_token": "<client_token>"
},
"name": "p2p_transfer_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client_id | No | Six lowercase letters or digits from list_client. Required for execute_command, session_read and session_control on multi-device tokens, including existing sessions. Session-list filtering is optional. | |
| client_token | Yes | Control credential in token:key format, required with management access (including stdio and no-password mode). Scoped control bearer access implicitly selects its own token. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | Current P2P initialization state; waiting_for_agent means the remote registered, not that P2P connected. | |
| shell_script | Yes | Private POSIX shell bootstrap for the Agent environment on macOS or Linux. | |
| connection_id | Yes | P2P connection identifier. | |
| local_client_id | Yes | Local p2p-cli identifier used in CLIENT:PATH copy operands. | |
| remote_client_id | Yes | Remote p2p-cli identifier used in CLIENT:PATH copy operands. | |
| powershell_script | Yes | Private PowerShell bootstrap for the Agent environment on Windows. |