sftp_stat
Retrieve metadata for a remote file or directory using a connection ID and remote path to inspect type, size, permissions, and timestamps.
Instructions
Get metadata for a file or directory on the remote host.
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": {
"connectionId": "<connectionId>",
"remotePath": "<remotePath>"
},
"name": "sftp_stat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remotePath | Yes | Remote path to stat | |
| connectionId | Yes | Connection ID from ssh_connect |