{"record":{"id":"ff00f007189dc7f7","repo":"tinyhumansai/openhuman","slug":"method-is-required","errorCode":null,"errorMessage":"--method is required","messagePattern":"--method is required","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/cli.rs","lineNumber":486,"sourceCode":"                );\n                i += 2;\n            }\n            \"--params\" => {\n                params = args\n                    .get(i + 1)\n                    .ok_or_else(|| anyhow::anyhow!(\"missing value for --params\"))?\n                    .clone();\n                i += 2;\n            }\n            \"-h\" | \"--help\" => {\n                println!(\"Usage: openhuman call --method <name> [--params '<json>']\");\n                return Ok(());\n            }\n            other => return Err(anyhow::anyhow!(\"unknown call arg: {other}\")),\n        }\n    }\n\n    let method = method.ok_or_else(|| anyhow::anyhow!(\"--method is required\"))?;\n    let params = parse_json_params(&params).map_err(anyhow::Error::msg)?;\n\n    // Raw calls bypass namespace parsing, but not the configured memory-driver\n    // binding. Without this gate an absent capability could still reach a\n    // destructive embedded handler because plain CLI invocations have no\n    // ambient CoreContext to filter the registry.\n    crate::core::cli_capability::ensure_capability_blocking(\n        all::capability_for_rpc_method(&method).flatten(),\n        &format!(\"openhuman call --method {method}\"),\n    )?;\n\n    // `call` invokes a JSON-RPC method that may run an orchestrator turn\n    // (e.g. `agent.chat`), so it needs the same roomy stack as the server.\n    let rt = tokio::runtime::Builder::new_multi_thread()\n        .enable_all()\n        .thread_stack_size(crate::core::runtime::AGENT_WORKER_STACK_BYTES)\n        .max_blocking_threads(crate::core::runtime::MAX_BLOCKING_THREADS)\n        .build()?;","sourceCodeStart":468,"sourceCodeEnd":504,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/cli.rs#L468-L504","documentation":"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.","triggerScenarios":"Thrown at src/core/cli.rs:486 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}