plan_tool_mapping
Map a sub-query to a specific tool (web_search, web_fetch, or web_map) with reasoning and confidence. Use once per mapping; set revision to replace all mappings.
Instructions
Phase 5: Map a sub-query to a tool. Call once per mapping; data accumulates.
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": {
"session_id": "<session_id>",
"thought": "<thought>",
"sub_query_id": "<sub_query_id>",
"tool": "<tool>",
"reason": "<reason>"
},
"name": "plan_tool_mapping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | web_search | web_fetch | web_map | |
| reason | Yes | Why this tool for this sub-query | |
| thought | Yes | Reasoning for this mapping | |
| confidence | No | Confidence 0.0-1.0 | |
| session_id | Yes | Session ID from plan_intent | |
| is_revision | No | True to replace all mappings | |
| params_json | No | Optional JSON string for tool-specific params | |
| sub_query_id | Yes | Sub-query ID to map |