tinyhumansai/openhuman · error · anyhow::Error
Missing 'plan' parameter
Error message
Missing 'plan' parameter
What it means
The plan_exit tool was called without its single required `plan` argument (missing or not a string). The plan text is the whole payload of the handoff this tool performs, so there is nothing to do without it; the schema declares `plan` as required with minLength implied by usage.
Solutions
- Pass the markdown-formatted plan text as the `plan` string argument
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/openhuman/agent/tools/plan_exit.rs:69 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17).
Data as JSON: /api/errors/9cce72d6fd7d0669.
Report an issue: GitHub.
Appendix: source
Thrown at src/openhuman/agent/tools/plan_exit.rs:69
"properties": {
"plan": {
"type": "string",
"description": "Markdown-formatted plan text to hand off."
}
},
"required": ["plan"]
})
}
fn permission_level(&self) -> PermissionLevel {
PermissionLevel::None
}
async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {
let plan = args
.get("plan")
.and_then(|v| v.as_str())
.ok_or_else(|| anyhow::anyhow!("Missing 'plan' parameter"))?;
let trimmed = plan.trim();
if trimmed.is_empty() {
return Ok(ToolResult::error("`plan` must not be empty"));
}
Ok(ToolResult::success(format!(
"{PLAN_EXIT_MARKER}\n{trimmed}"
)))
}
}
#[cfg(test)]
mod tests {
use super::*;
#[tokio::test]
async fn plan_exit_emits_marker() {
let tool = PlanExitTool::new();
let result = toolView on GitHub (pinned to 7491200858)