obtener_fragmento
Retrieve up to 200 literal lines from an indexed file by providing a relative path and start/end line numbers. Use it to inspect source code snippets without reading the entire repository.
Instructions
Devuelve líneas literales de un fichero indexado, con un máximo de 200 líneas.
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": {
"ruta_relativa": "<ruta_relativa>",
"linea_inicio": "<linea_inicio>",
"linea_fin": "<linea_fin>"
},
"name": "obtener_fragmento"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| linea_fin | Yes | Última línea, incluida | |
| linea_inicio | Yes | Primera línea, empezando en 1 | |
| ruta_relativa | Yes | Ruta relativa dentro de la raíz indexada |