{"record":{"id":"fb3a9afbf80a65e1","repo":"tinyhumansai/openhuman","slug":"missing-find-action-for-find","errorCode":null,"errorMessage":"Missing 'find_action' for find","messagePattern":"Missing 'find_action' for find","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/tools/impl/browser/action_parser.rs","lineNumber":138,"sourceCode":"                .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\npub(crate) fn is_supported_browser_action(action: &str) -> bool {\n    matches!(\n        action,\n        \"open\"","sourceCodeStart":120,"sourceCodeEnd":156,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/tools/impl/browser/action_parser.rs#L120-L156","documentation":"Guard in parse_browser_action for `find`: `by` and `value` were present but `find_action` (what to do with the located element: click/fill/get_text) is missing. The BrowserAction::Find variant requires all three.","triggerScenarios":"Thrown at src/openhuman/tools/impl/browser/action_parser.rs:138 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include `find_action` as a string (e.g. click, fill, get_text)","Add `fill_value` too when find_action is fill"],"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"}