recommend_libraries
Recommends Robot Framework libraries based on a task description, helping resolve missing keyword errors by suggesting relevant imports.
Instructions
Recommend libraries for a scenario or generate/merge sampling prompts.
WHEN TO USE THIS TOOL:
IMMEDIATELY after analyze_scenario, before execute_step
When you encounter "No keyword with name" errors
To discover which libraries provide needed functionality
This tool analyzes scenario text and suggests relevant libraries, saving you from guessing which libraries to import.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Number of samples to request when mode="sampling_prompt" (defaults to 4). | |
| mode | No | "direct", "sampling_prompt", or "merge_samples". | direct |
| context | No | Context such as "web", "mobile", or "api". Defaults to "web". | web |
| samples | No | Sampled recommendations to merge when mode="merge_samples". | |
| scenario | Yes | Natural-language description of the task to automate. | |
| session_id | No | Optional session id to align recommendations with an existing session. | |
| include_keywords | No | When True, include a compact keyword list (names only) for the top recommendation. | |
| apply_search_order | No | When True, applies recommended order to the session. | |
| check_availability | No | When True, checks installability/presence of suggested libs. | |
| use_llm_refinement | No | When True, uses LLM via ctx.sample() to refine recommendations. | |
| available_libraries | No | Optional pre-fetched library metadata to use instead of registry defaults. | |
| max_recommendations | No | Maximum libraries to return (direct mode). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||