remove_route
Remove a route frame from the Design Canvas. Prefer using the route ID for unambiguous removal; path removal removes only the first match.
Instructions
Remove a route frame from the Design Canvas.
CONSTRAINTS:
Prefer removal by ID (from list_routes or add_route response) — unambiguous
Removal by path is supported but removes only the first match — risky when duplicate paths exist (e.g., same route at desktop + mobile widths)
If you need to remove a specific viewport size, call list_routes first to find the exact route ID
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "remove_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Route ID from list_routes or add_route. Preferred — unambiguous. | |
| path | No | Route path to remove. Removes first match only. Use id for precision. |