get_cli_template
Retrieve a CLI template and its script by ADOM and name, with secrets redacted so you can inspect what it pushes without exposing sensitive values.
Instructions
Read a CLI template, with its script.
get_cli_template_group lists a group's members only; this returns what
a member pushes. Secrets in the script are redacted, so the result shows
that a template sets a password, not the value: set <secret> values
and ENC blobs, SNMP community names, secret-named Jinja {% set %}
assignments, and secret-keyed string literals inside Jinja tags. A bare
variable reference (set psksecret {{ psk }}, $(psk)) is kept,
since it names where the value comes from. Any other value is masked up
to the next CLI line, and if a Jinja template could compute a secret
from its own constants, those constants are masked too. A template whose
type is "cli" is read as plain CLI; any other type as Jinja.
Args: adom: ADOM name name: CLI template name (see list_cli_templates)
Returns: dict: cli_template with name, type, description, variables, script
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": {
"adom": "<adom>",
"name": "<name>"
},
"name": "get_cli_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adom | Yes | ||
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||