Accept File Transfer
srift_accept_transferAccept a pending peer file offer and start downloading it to an optional save directory by supplying the fileId from the transfer list.
Instructions
Accept a pending file offer from the peer and start downloading it. Get the fileId from srift_list_transfers (offers show as pending).
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": {
"fileId": "<fileId>"
},
"name": "srift_accept_transfer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | fileId from the inbound file_offer event or transfer list | |
| saveDir | No | Absolute path to destination directory (defaults to CWD) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | No | Accepted transfer ID | |
| saveDir | No | Destination directory path | |
| success | No | True if transfer acceptance started successfully |