search_chromium_code
Search Chromium source code using Google's official Code Search syntax to find functions, classes, symbols, or specific content patterns.
Instructions
Search for code in the Chromium source repository using Google's official Code Search syntax
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_chromium_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query using Code Search syntax. Examples: 'LOG(INFO)', 'class:Browser', 'function:CreateWindow', 'lang:cpp memory', 'file:*.cc content:"base::"', 'comment:"TODO: fix"' | |
| case_sensitive | No | Make search case sensitive (adds 'case:yes' to query) | |
| language | No | Filter by programming language (e.g., 'cpp', 'javascript', 'python') | |
| file_pattern | No | File pattern filter (e.g., '*.cc', '*.h', 'chrome/browser/*') | |
| search_type | No | Specific search type: 'content' (file contents), 'function' (function names), 'class' (class names), 'symbol' (symbols), 'comment' (comments only) | |
| exclude_comments | No | Exclude comments and string literals from search (uses 'usage:' filter) | |
| limit | No | Maximum number of results to return (default: 20) |