tinyhumansai/openhuman · error · anyhow::Error
missing required field `op`
Error message
missing required field `op`
What it means
The todo tool was invoked without the `op` field (absent or not a string). `op` selects which board operation runs (add/edit/update_status/remove/replace) and is the only required schema key; the guard fires before the operation match, so the call is rejected before any board state is touched.
Solutions
- Include `op` with one of the supported operation names (e.g. "add", "edit", "update_status", "remove", "replace")
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/openhuman/agent/tools/todo.rs:121 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/614ebc372bf7b620.
Report an issue: GitHub.
Appendix: source
Thrown at src/openhuman/agent/tools/todo.rs:121
"cards": {
"type": "array",
"description": "Full card list for op=replace.",
"items": { "type": "object" }
}
},
"required": ["op"]
})
}
fn permission_level(&self) -> PermissionLevel {
PermissionLevel::None
}
async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {
let op = args
.get("op")
.and_then(|v| v.as_str())
.ok_or_else(|| anyhow::anyhow!("missing required field `op`"))?
.trim()
.to_string();
let location = current_location();
tracing::debug!(op = %op, thread_id = ?location.thread_id(), "[tool][todo] dispatch");
let result = match op.as_str() {
"add" => {
let content = required_string(&args, "content")?;
let mut patch = patch_from_args(&args)?;
if patch.approval_mode.is_none() {
patch.approval_mode = Some(default_task_approval_mode().await);
}
ops::add(&location, &content, patch).await
}
"edit" => {
let id = required_string(&args, "id")?;
let mut patch = patch_from_args(&args)?;View on GitHub (pinned to 7491200858)