tinyhumansai/openhuman · error · anyhow::Error

find_action='fill' requires fill_value

Error message

find_action='fill' requires fill_value

What it means

Guard in the native browser backend's Find handling: find_action is "fill" but no `fill_value` argument was supplied, so the located element has nothing to type. The element was already found; only the fill payload is missing.

Source

Thrown at src/openhuman/tools/impl/browser/native_backend.rs:278

            }
            BrowserAction::Find {
                by,
                value,
                action,
                fill_value,
            } => {
                let client = self.active_client()?;
                let selector = selector_for_find(&by, &value);
                let element = find_element(client, &selector).await?;

                let payload = match action.as_str() {
                    "click" => {
                        element.click().await?;
                        json!({"result": "clicked"})
                    }
                    "fill" => {
                        let fill = fill_value.ok_or_else(|| {
                            anyhow::anyhow!("find_action='fill' requires fill_value")
                        })?;
                        let _ = element.clear().await;
                        element.send_keys(&fill).await?;
                        json!({"result": "filled", "typed": fill.len()})
                    }
                    "text" => {
                        let text = element.text().await?;
                        json!({"result": "text", "text": text})
                    }
                    "hover" => {
                        hover_element(client, &element).await?;
                        json!({"result": "hovered"})
                    }
                    "check" => {
                        let checked_before = element_checked(&element).await?;
                        if !checked_before {
                            element.click().await?;
                        }

View on GitHub (pinned to 7491200858)

Solutions

  1. Include `fill_value` as a string when find_action is fill
  2. Or use a different find_action (click, get_text) if filling was not intended
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/openhuman/tools/impl/browser/native_backend.rs:278 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/7a327ee15576fc37. Report an issue: GitHub.