Rename device_command_run → device_show_run for clarity

The name device_command_run was ambiguous and easily confused with
device_config_send. device_show_run makes the read-only intent explicit,
forming a clear pair: config_send (write) vs show_run (read).
This commit is contained in:
YueGuobin committed 2026-06-16 12:27:35 +08:00
1 parent e627481ec2
commit fbb8924a8e
2 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -1356,7 +1356,7 @@ async def image_install() -> list[dict[str, Any]]:
# 1. node_list(project_id) → identify device names
# 2. node_start_all(project_id) → ensure devices are running
# 3. device_config_send(project_id, device_configs=[...]) → push config
# 4. device_command_run(project_id, device_commands=[...]) → verify
# 4. device_show_run(project_id, device_commands=[...]) → verify
@mcp.tool()
@@ -1385,7 +1385,7 @@ async def device_config_send(
@mcp.tool()
async def device_command_run(
async def device_show_run(
project_id: Annotated[str, Field(description="UUID of the project")],
device_configs: Annotated[list, Field(
description="List of device commands. Each entry: {\"device_name\": \"R1\", \"commands\": [\"show ip int brief\", \"show running-config\"]}"