ftp_get_contents
Read remote file contents, with optional start and end lines to extract only needed chunks and prevent exceeding context limits.
Instructions
Read the source text of a remote file. CRITICAL: For large files, use 'startLine' and 'endLine' to extract specific chunks and prevent hitting the LLM context limit.
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": "ftp_get_contents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or relative remote path to the file. | |
| endLine | No | Optional: The last line to include (inclusive, 1-indexed). | |
| startLine | No | Optional: The first line to include in the output (1-indexed). |