Recommend Icons
recommend_iconsRecommend a coherent icon set for up to 20 named UI slots in one call. Uses task context to narrow ambiguous meanings. When context is insufficient, returns needs_clarification with labeled interpretation options instead of guessing. Invalid inputs and service failures return a plain-language reason and a next step instead of a bare protocol error. Returns one recommendation and optional alternatives for each resolved slot, with explicit public library labels and visual preview URLs where available. Library key si means Supericons, not Simple Icons.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | Overall UI task, for example "choose icons for an AI dashboard sidebar" or "select bottom navigation icons for a finance app". Missing task text returns a structured recovery message. | |
| slots | No | List of 1 to 20 UI slots to fill, for example ["model", "prompt", "dataset", "evaluation"]. A single string is accepted as one slot. Larger lists return a structured split instruction. | |
| style | No | Optional style preference. Unsupported values are ignored with a warning. | any |
| locale | No | Optional locale for multilingual slot labels. Unsupported values are ignored with a warning. | |
| library | No | Optional library key when the user wants a consistent icon family. Supported values include si (Supericons AI and developer tool logos), lucide, tabler, phosphor, heroicons, bootstrap, iconoir, ionicons, material, simpleicons (Simple Icons brand logos), and mingcute. | |
| response_mode | No | Response size mode: plan, assets, or full. Unsupported values use plan with a warning. | plan |
| limit_per_slot | No | Number of choices per slot. Values outside 1 to 5 are clamped with a warning. Numeric strings are accepted. | |
| include_query_frame | No | Optional public-safe diagnostics for query understanding. Boolean strings are accepted. Leave false for normal compact responses. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Stable error code for programmatic recovery. | |
| hint | No | Plain-language recovery instruction. | |
| task | Yes | Original UI task. | |
| error | No | Plain-language reason the recommendation did not complete. | |
| style | No | Style preference used for recommendations. | |
| status | No | HTTP status from a hosted dependency failure. | |
| details | No | Structured limits or failure details. | |
| library | No | Library filter used for recommendations, if provided. | |
| results | Yes | Recommended icon choices grouped by requested UI slot. | |
| warnings | No | Unsupported optional inputs that were safely ignored or clamped. | |
| next_step | No | Useful next action for the caller. | |
| retryable | No | Whether a corrected or later request may succeed. | |
| slot_count | Yes | Number of UI slots requested. | |
| preview_url | No | Browser URL for visual inspection of the recommended icon set. | |
| query_frame | No | Optional public-safe query understanding diagnostics for the task. | |
| response_mode | Yes | Response size mode used for this recommendation. | |
| search_runtime | No | Search execution path used for this recommendation. | |
| all_slots_resolved | Yes | Whether every requested slot received a recommendation without clarification. | |
| clarification_slots | Yes | Slots that need the caller to choose an interpretation. | |
| needs_clarification | Yes | Whether one or more ambiguous slots require more context. | |
| retry_after_seconds | No | Seconds to wait before retrying a rate-limited recommendation. | |
| fallback_recommended | Yes | Whether the caller should consider direct search or clarification. | |
| low_confidence_slots | Yes | Slots whose result is missing or has low confidence. | |
| suggested_response_markdown | No | Plain-language explanation suitable for the agent response. |