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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "tool_suggest_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| known_urls | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
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