List service files
list_service_filesList files and directories inside a running VPS server path, paging with offset and nextOffset; use entry versions when writing or uploading files.
Instructions
List one directory page inside a running server (lstat: a symlink is described itself), directories first. Page with offset=nextOffset while nextOffset is non-null; above 100,000 entries the listing is truncated (total null). Each entry's version is the compare-and-swap token for write_service_file and upload_service_file. 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 |
|---|---|---|---|
| path | No | Absolute directory path; default / | |
| sort | No | ||
| limit | No | ||
| order | No | ||
| filter | No | Case-insensitive name substring | |
| offset | 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) |