List available menu items. Args: filter_text: Text to filter menu items (case-insensitive) limit: Maximum number of items to return (default: 100) Returns: Dictionary with: - count: int - Number of items found - items: lis
(
self,
filter_text: str | None = None,
limit: int = 100,
)
| 29 | return self._conn.send_request("menu", {"action": "execute", "path": path}) |
| 30 | |
| 31 | def list( |
| 32 | self, |
| 33 | filter_text: str | None = None, |
| 34 | limit: int = 100, |
| 35 | ) -> dict[str, Any]: |
| 36 | """List available menu items. |
| 37 | |
| 38 | Args: |
| 39 | filter_text: Text to filter menu items (case-insensitive) |
| 40 | limit: Maximum number of items to return (default: 100) |
| 41 | |
| 42 | Returns: |
| 43 | Dictionary with: |
| 44 | - count: int - Number of items found |
| 45 | - items: list - Menu items with path, priority, shortcut, type |
| 46 | """ |
| 47 | params: dict[str, Any] = {"action": "list", "limit": limit} |
| 48 | if filter_text: |
| 49 | params["filter"] = filter_text |
| 50 | return self._conn.send_request("menu", params) |
| 51 | |
| 52 | def context( |
| 53 | self, |