sftp_stat
Retrieve POSIX metadata for a remote file or directory over SFTP to inspect permissions, ownership, size, and timestamps before file operations.
Instructions
获取远程文件或目录的 POSIX 详细元数据信息
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": {
"remotePath": "<remotePath>"
},
"name": "sftp_stat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remotePath | Yes | 待检查状态的远程路径 | |
| connectionId | No | 目标连接标识符,缺省时使用当前默认连接 |