{"record":{"id":"6fcb52ece029cf33","repo":"tinyhumansai/openhuman","slug":"missing-value-for-find","errorCode":null,"errorMessage":"Missing 'value' for find","messagePattern":"Missing 'value' for find","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/tools/impl/browser/action_parser.rs","lineNumber":134,"sourceCode":"        \"is_visible\" => {\n            let selector = args\n                .get(\"selector\")\n                .and_then(|v| v.as_str())\n                .ok_or_else(|| anyhow::anyhow!(\"Missing 'selector' for is_visible\"))?;\n            Ok(BrowserAction::IsVisible {\n                selector: selector.into(),\n            })\n        }\n        \"close\" => Ok(BrowserAction::Close),\n        \"find\" => {\n            let by = args\n                .get(\"by\")\n                .and_then(|v| v.as_str())\n                .ok_or_else(|| anyhow::anyhow!(\"Missing 'by' for find\"))?;\n            let value = args\n                .get(\"value\")\n                .and_then(|v| v.as_str())\n                .ok_or_else(|| anyhow::anyhow!(\"Missing 'value' for find\"))?;\n            let action = args\n                .get(\"find_action\")\n                .and_then(|v| v.as_str())\n                .ok_or_else(|| anyhow::anyhow!(\"Missing 'find_action' for find\"))?;\n            Ok(BrowserAction::Find {\n                by: by.into(),\n                value: value.into(),\n                action: action.into(),\n                fill_value: args\n                    .get(\"fill_value\")\n                    .and_then(|v| v.as_str())\n                    .map(String::from),\n            })\n        }\n        other => anyhow::bail!(\"Unsupported browser action: {other}\"),\n    }\n}\n","sourceCodeStart":116,"sourceCodeEnd":152,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/tools/impl/browser/action_parser.rs#L116-L152","documentation":"Action-argument validation in parse_browser_action: the `find` action was requested and its `by` parsed, but the required `value` argument (what to search for) is absent or not a string. Fires before any browser automation runs.","triggerScenarios":"Thrown at src/openhuman/tools/impl/browser/action_parser.rs:134 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include `value` as the string the `by` strategy matches","Also provide `find_action` in the same call"],"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-14T05:17:10.506Z"}