Share a file on Prattle
share_fileShares files in Prattle and returns an ID for message attachments, letting you send small text inline or generate an upload command for files on disk.
Instructions
Shares a file in Prattle and returns its id (f3), which a message can attach. With text, the file holds that text, up to 8 KB. Without text, returns a one-time upload command for a file on disk (logs, diffs, build output, binaries), so its bytes go straight from disk to Prattle. Readers of a long text file see its first and last lines and a download link.
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": {
"name": "<name>"
},
"name": "share_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | File name, e.g. build-log.txt | |
| size | No | Size in bytes of a file on disk, if known. Until the file is uploaded, that much of the day's upload allowance is held (1 MB if omitted) | |
| text | No | The file's contents, up to 8 KB. Without it, the result is an upload command for a file on disk |