{"record":{"id":"850eb27fdcc277e7","repo":"tinyhumansai/openhuman","slug":"missing-pattern-parameter","errorCode":null,"errorMessage":"Missing 'pattern' parameter","messagePattern":"Missing 'pattern' parameter","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/tools/impl/filesystem/glob_search.rs","lineNumber":116,"sourceCode":"        &self,\n        args: serde_json::Value,\n        _options: ToolCallOptions,\n        context: Option<&ToolExecutionContext>,\n    ) -> anyhow::Result<ToolResult> {\n        self.execute_in_context(args, context).await\n    }\n}\n\nimpl GlobTool {\n    async fn execute_in_context(\n        &self,\n        args: serde_json::Value,\n        context: Option<&ToolExecutionContext>,\n    ) -> anyhow::Result<ToolResult> {\n        let pattern_str = args\n            .get(\"pattern\")\n            .and_then(|v| v.as_str())\n            .ok_or_else(|| anyhow::anyhow!(\"Missing 'pattern' parameter\"))?;\n        // Default the search root to \".\" — which `validate_path` resolves to the\n        // action sandbox (action_dir), the same root file_read/grep/list use.\n        let search_path = args\n            .get(\"path\")\n            .and_then(|v| v.as_str())\n            .map(str::trim)\n            .filter(|s| !s.is_empty())\n            .unwrap_or(\".\");\n        let max_results = args\n            .get(\"max_results\")\n            .and_then(|v| v.as_u64())\n            .map(|n| (n as usize).max(1))\n            .unwrap_or(DEFAULT_MAX_RESULTS);\n\n        if self.security.is_rate_limited() {\n            return Ok(ToolResult::error(\n                \"Rate limit exceeded: too many actions in the last hour\",\n            ));","sourceCodeStart":98,"sourceCodeEnd":134,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/tools/impl/filesystem/glob_search.rs#L98-L134","documentation":"Glob tool argument guard: the required 'pattern' argument is missing or not a string. Fires before path security validation or the scan task spawns.","triggerScenarios":"Thrown at src/openhuman/tools/impl/filesystem/glob_search.rs:116 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass 'pattern' as a glob string (e.g. '**/*.rs')","Combine with a 'path' argument to scope the search"],"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-14T00:17:10.932Z"}