docs(mcp): document show_filters_icon on link tools

The server link schema has show_filters_icon (default true) and the PUT
passes it through, but the MCP tool docs did not mention it. The old
copilot packet filter tool always set it to false to hide the filter icon
during fault injection; after the move to link_update the icon stayed
visible because the model had no way to know the field exists.

- link_update: add show_filters_icon to the supported kwargs
- link_list: add show_filters_icon to the available response fields
This commit is contained in:
YueGuobin committed 2026-11-03 23:19:00 +08:00
1 parent 5a294461e8
commit f2f42c4817
1 file changed
+4 -1
+4 -1
View File
@@ -855,7 +855,7 @@ async def link_list(
fields: Annotated[
list[str] | None,
Field(
description='Optional: return only these fields. e.g. ["link_id","nodes"]. Available: link_id, project_id, link_type, kernel_datapath, nodes, suspend, filters, capturing, capture_file_name, link_style'
description='Optional: return only these fields. e.g. ["link_id","nodes"]. Available: link_id, project_id, link_type, kernel_datapath, nodes, suspend, filters, show_filters_icon, capturing, capture_file_name, link_style'
),
] = None,
) -> list[dict[str, Any]]:
@@ -945,6 +945,9 @@ async def link_update(
Supported kwargs:
- suspend: boolean - Suspend or resume the link
- show_filters_icon: boolean - Show the filter icon in the Web UI (server
default true). Set false to keep the canvas clean when injecting
practice faults
- filters: dict - Packet filters (values MUST be positional arrays). Types
marked (K) run on kernel-datapath links only (both endpoints on one
compute with an anchor of their own) and are rejected with 409 on relay