tinyhumansai/openhuman · error
--method is required
Error message
--method is required
What it means
Post-parse validation in `run_call_command`: the argument loop completed without ever setting `--method`, so there is no JSON-RPC method to invoke. Distinguished from the missing-value error, which fires when --method is present but its value token is absent.
Solutions
- Pass the method name, e.g. `openhuman call --method agent.list_agents --params '{}'`
- List available namespaces/methods via `openhuman --help` or a namespace's --help
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/core/cli.rs:486 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/ff00f007189dc7f7.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/cli.rs:486
);
i += 2;
}
"--params" => {
params = args
.get(i + 1)
.ok_or_else(|| anyhow::anyhow!("missing value for --params"))?
.clone();
i += 2;
}
"-h" | "--help" => {
println!("Usage: openhuman call --method <name> [--params '<json>']");
return Ok(());
}
other => return Err(anyhow::anyhow!("unknown call arg: {other}")),
}
}
let method = method.ok_or_else(|| anyhow::anyhow!("--method is required"))?;
let params = parse_json_params(¶ms).map_err(anyhow::Error::msg)?;
// Raw calls bypass namespace parsing, but not the configured memory-driver
// binding. Without this gate an absent capability could still reach a
// destructive embedded handler because plain CLI invocations have no
// ambient CoreContext to filter the registry.
crate::core::cli_capability::ensure_capability_blocking(
all::capability_for_rpc_method(&method).flatten(),
&format!("openhuman call --method {method}"),
)?;
// `call` invokes a JSON-RPC method that may run an orchestrator turn
// (e.g. `agent.chat`), so it needs the same roomy stack as the server.
let rt = tokio::runtime::Builder::new_multi_thread()
.enable_all()
.thread_stack_size(crate::core::runtime::AGENT_WORKER_STACK_BYTES)
.max_blocking_threads(crate::core::runtime::MAX_BLOCKING_THREADS)
.build()?;View on GitHub (pinned to 7491200858)