tool_suggest_workflow
Analyzes research queries to recommend optimal tools and workflow steps for answering questions efficiently, using intent classification and dynamic generation.
Instructions
Suggest optimal research workflow for a query.
Analyzes the query and recommends the best tools and workflow to answer it. Uses smart intent classification and dynamic workflow generation.
Args: query: Research question or task description. known_urls: Optional list of already known URLs (default None).
Returns: Dictionary with intent, workflow steps, and suggested parameters.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| known_urls | No |
Implementation Reference
- src/devlens/server.py:179-200 (handler)The handler implementation for the tool_suggest_workflow tool, which uses suggest_tools to provide workflow recommendations.
def tool_suggest_workflow(query: str, known_urls: list[str] = None) -> dict: """Suggest optimal research workflow for a query. Analyzes the query and recommends the best tools and workflow to answer it. Uses smart intent classification and dynamic workflow generation. Args: query: Research question or task description. known_urls: Optional list of already known URLs (default None). Returns: Dictionary with intent, workflow steps, and suggested parameters. """ # Build context from known URLs context = ResearchContext() if known_urls: context.known_urls = known_urls # Get workflow suggestions result = suggest_tools(query, context) return result