tinyhumansai/openhuman · error
Missing 'pattern' parameter
Error message
Missing 'pattern' parameter
What it means
Glob tool argument guard: the required 'pattern' argument is missing or not a string. Fires before path security validation or the scan task spawns.
Source
Thrown at src/openhuman/tools/impl/filesystem/glob_search.rs:116
&self,
args: serde_json::Value,
_options: ToolCallOptions,
context: Option<&ToolExecutionContext>,
) -> anyhow::Result<ToolResult> {
self.execute_in_context(args, context).await
}
}
impl GlobTool {
async fn execute_in_context(
&self,
args: serde_json::Value,
context: Option<&ToolExecutionContext>,
) -> anyhow::Result<ToolResult> {
let pattern_str = args
.get("pattern")
.and_then(|v| v.as_str())
.ok_or_else(|| anyhow::anyhow!("Missing 'pattern' parameter"))?;
// Default the search root to "." — which `validate_path` resolves to the
// action sandbox (action_dir), the same root file_read/grep/list use.
let search_path = args
.get("path")
.and_then(|v| v.as_str())
.map(str::trim)
.filter(|s| !s.is_empty())
.unwrap_or(".");
let max_results = args
.get("max_results")
.and_then(|v| v.as_u64())
.map(|n| (n as usize).max(1))
.unwrap_or(DEFAULT_MAX_RESULTS);
if self.security.is_rate_limited() {
return Ok(ToolResult::error(
"Rate limit exceeded: too many actions in the last hour",
));View on GitHub (pinned to 7491200858)
Solutions
- Pass 'pattern' as a glob string (e.g. '**/*.rs')
- Combine with a 'path' argument to scope the search
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/openhuman/tools/impl/filesystem/glob_search.rs:116 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/850eb27fdcc277e7.
Report an issue: GitHub.