route_workflow
Routes a user task through a workflow by matching the request against nodes, returning the best-fit node or a fallback when no match exists.
Instructions
入口路由——传 task + workflow 返回命中节点或 fallback。
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": {
"task": "<task>",
"workflow": "<workflow>"
},
"name": "route_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | 用户请求文本(自然语言,如「帮我写一份财报分析」) | |
| workflow | Yes | 已解析的 workflow JSON(ParsedWorkflow 结构,含 nodes 数组) |