Send File in Session
srift_send_fileOffers a local file to the connected peer inside an existing approved session; the peer accepts it, and you get a fileId to monitor progress.
Instructions
Only inside an already-open session with an approved peer; to simply send or share a file with someone, use srift_quick_share instead. Offers a file to the connected peer in the existing session. The peer must accept with srift_accept_transfer. Returns a fileId for monitoring. Transport is auto-selected internally.
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>"
},
"name": "srift_send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the file on local disk |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | No | Unique identifier for the offered file transfer | |
| fileName | No | Base filename of the offered file | |
| fileSize | No | Size of file in bytes |