device_fetch_config
Read back a device's running configuration, optionally save it to a UTF-8 file, or compare it with a baseline to get a line-order-preserving diff; failed or timed-out commands write no file.
Instructions
读回运行配置;save_to 可保存 UTF-8 文件,compare_with 可与基线文件比较。
diff 同时提供 identical、onlyOnDevice、onlyInFile 和带上下文的 unifiedDiff, 保留行顺序及重复行。命令失败或超时不写出配置文件。登录参数与 device_exec 相同。
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": {
"target": "<target>"
},
"name": "device_fetch_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | 127.0.0.1 | |
| target | Yes | ||
| save_to | No | ||
| password | No | ||
| username | No | ||
| topo_path | No | ||
| compare_with | No | ||
| new_password | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |