Stat service file
stat_service_fileDescribe a file or directory entry's type, size, mode, owner, mtime, version, and kind, optionally adding SHA-256 and following symlinks.
Instructions
Describe one entry: type, size, mode, owner, mtime, version and kind (text, image, binary, directory, other). A symlink is followed to its canonical target unless follow=false. hash=true adds the SHA-256 (files up to 4 GiB, 30 s budget; otherwise hashSkipped). A slow guest answers 202 with an operation: this tool polls it itself and returns the final answer, or, after waitSeconds, the operationId to continue with get_service_file_operation (never repeat the call). Requires files:read on the API key as an explicit grant (a key whose permission list was left empty does not hold it), read or full access; the hosted connector needs vm:files:read. Availability: Firecracker servers need the updated guest agent (filesUnavailable reason agent_update_required; node_update_required while the host node is not updated yet) and Cloud VPS (KVM) servers need the VDS file-manager switch (reason feature_disabled while it is off); relay any unavailable reason verbatim and never work around it. A server whose 2FA lock is on answers 423.
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": {
"orderNo": "<orderNo>",
"path": "<path>"
},
"name": "stat_service_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | No | ||
| path | Yes | Absolute path inside the server (UTF-8, at most 4096 bytes, no . or .. components) | |
| follow | No | ||
| orderNo | Yes | Tenant-owned service order number, e.g. VP12345 | |
| waitSeconds | No | How long this tool waits for a slow guest's operation before returning its operationId (default 30, recursive delete and extract 60) |