Get item size
drive_sizeGet the total size of a Proton Drive file or folder as reported by the CLI, so you can check storage usage. Read-only; requires CLI 0.9.0+.
Instructions
Get the size of one Proton Drive file or folder as reported by the CLI (filesystem size; folders are totalled by the CLI). Read-only. Needs Proton Drive CLI 0.9.0 or newer. For per-folder breakdowns use drive_tree.
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": {
"path": "<path>"
},
"name": "drive_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute remote path, e.g. /my-files/Projects. |