Measure Tool
amount.measureMeasures disk space usage for an entire mount, a rule's remote or local folder, or a sub-folder; runs in the background and returns a run ID to poll for results.
Instructions
Count how much space something uses ("how much does the S3 mount use"). Read-only but slow, so it runs in the background and returns a run uuid: poll amount.status until finished, the result is its usage. Give mount for a whole mount (a shared site mount needs an administrator; other managers measure their own rule), or rule for a rule's remote folder, or rule + local=true for its local folder. path narrows to a sub-folder.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "amount.measure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Sub-folder to count, e.g. "Backups" (default: everything) | |
| rule | No | Rule uuid from amount.rules | |
| local | No | With `rule`: count the local site folder instead of the remote one | |
| mount | No | Mount uuid or name (when no rule is given) |