Texto oficial de una norma (XML LeyChile)
obtener_texto_normaRetrieve official Chilean legal text from XML source. Choose between an article index or the full body, with optional truncation.
Instructions
XML oficial. modo=indice lista artículos; modo=cuerpo devuelve texto (truncable).
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": {
"id_norma": "<id_norma>"
},
"name": "obtener_texto_norma"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modo | No | cuerpo | |
| formato | No | Formato de salida: markdown (recomendado para citas) o json | markdown |
| id_norma | Yes | ||
| max_chars | No |