Stat service file
stat_service_fileRetrieve detailed metadata for a file or directory on a VPSnet service order, including type, size, mode, owner, mtime, version, kind, and optional SHA-256 hash.
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.
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) |