ssh_head_file
Retrieves the first N lines of a remote file over SSH, enabling quick inspection of file headers or logs.
Instructions
Get the first N lines of a file.
Args: path: Path to the file lines: Number of lines from the beginning (default: 50) session_name: SSH session to use
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": {
"path": "<path>"
},
"name": "ssh_head_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| lines | No | ||
| session_name | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |