sftp_ler
Reads text files from SFTP servers by profile and path, starting at a line and returning up to a line or byte limit; specify encoding or auto-detect UTF-8/CP1252, and get metadata for binary files.
Instructions
Le um arquivo de texto do servidor, a partir de linha_inicial, ate max_linhas ou o limite de bytes do perfil. encoding vazio detecta UTF-8 e cai para CP1252; informe para forcar (ex.: "cp1252"). Arquivo binario devolve so os metadados.
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": {
"perfil": "<perfil>",
"caminho": "<caminho>"
},
"name": "sftp_ler"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| perfil | Yes | ||
| caminho | Yes | ||
| encoding | No | ||
| max_linhas | No | ||
| linha_inicial | No |