get_config
Retrieve Junos device configuration in text, set, or XML format by specifying the target hostname.
Instructions
Get device configuration.
Args: hostname: Target device hostname (must exist in config.ini) output_format: Output format - "text" (default), "set", or "xml" config_path: Path to config.ini (empty string uses default search)
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": {
"hostname": "<hostname>"
},
"name": "get_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostname | Yes | ||
| config_path | No | ||
| output_format | No | text |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |