rehub_plan
Generate versioned executable task graphs for scenarios or object-and-mode workflows, with step capabilities, fallbacks, constraints, and local replanning; plans persist for execution tracking.
Instructions
生成可执行任务图(版本化):(a) 按场景 scenario;(b) 按对象+模式 objectType+mode;(c) 只传 taskId 查看已有任务。每步带 stepId / capability / 副作用标记 / 后端可用性 / 回退候选 / 期望证据;支持局部重规划(fromStep)与约束(maxSteps/maxRetries/budgetMs)。计划会落盘为任务,后续 rehub_exec 传 taskId+stepId 记录状态。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "rehub_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | 用户最终要什么产出(可选) | |
| mode | No | 链路模式(用法 b) | |
| target | No | 目标路径/URL | |
| taskId | No | 已有任务 id:补计划/局部重规划/查看任务 | |
| options | No | 链路参数:procedure/className/methodName/cdpEndpoint/targetId/package/device/workdir/process/query/pid 等 | |
| subtype | No | 对象子类(用法 b,可选) | |
| fromStep | No | 局部重规划的起点(step-N 或序号),之前的步骤保留状态 | |
| scenario | No | 场景 id(用法 a) | |
| objectType | No | 对象类别(用法 b):web/app/software/ai-automation | |
| constraints | No | 约束:authorization/maxSteps/maxRetries/budgetMs/allowInstall/readOnlyFirst | |
| changeReason | No | 重规划原因(记录到 planHistory) | |
| desiredOutput | No | 期望交付物:report/ui-prototype/api-doc/code-structure 等 | |
| resolveFallbacks | No | 首选后端不可用时是否自动选等效能力(默认 true) |