tinyhumansai/openhuman · error
'{key}' must be >= 0
Error message
'{key}' must be >= 0 What it means
validate_coordinate rejects a negative coordinate value for the named argument (e.g. x/y in click or move actions). Screen coordinates cannot be negative, so negative input indicates a model arithmetic or argument-mapping error.
Source
Thrown at src/openhuman/tools/impl/browser/browser.rs:555
.execute_action(
action,
self.native_headless,
Some(playwright_backend::BrowserUrlPolicy {
allowed_domains: self.allowed_domains.clone(),
allow_all: allow_all_browser_domains(),
}),
)
.await
.context("Playwright browser action failed")?;
Ok(ToolResult::success(
serde_json::to_string_pretty(&output).unwrap_or_default(),
))
}
fn validate_coordinate(&self, key: &str, value: i64, max: Option<i64>) -> anyhow::Result<()> {
if value < 0 {
anyhow::bail!("'{key}' must be >= 0")
}
if let Some(limit) = max {
if limit < 0 {
anyhow::bail!("Configured coordinate limit for '{key}' must be >= 0")
}
if value > limit {
anyhow::bail!("'{key}'={value} exceeds configured limit {limit}")
}
}
Ok(())
}
fn read_required_i64(
&self,
params: &serde_json::Map<String, Value>,
key: &str,
) -> anyhow::Result<i64> {
paramsView on GitHub (pinned to 7491200858)
Solutions
- Pass non-negative x/y coordinates within the viewport.
- Recompute the target position before the action.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/openhuman/tools/impl/browser/browser.rs:555 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/1fc6931781fb49f5.
Report an issue: GitHub.