Stat Remote Path
fs_statRetrieve file or directory statistics on a remote server via an SSH session. Provide the session ID and path to obtain details like size, permissions, and modification time.
Instructions
Gets file or directory statistics
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": {
"sessionId": "<sessionId>",
"path": "<path>"
},
"name": "fs_stat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to stat | |
| sessionId | Yes | SSH session ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| size | Yes | ||
| type | Yes | ||
| mtime | Yes |