gograph_strings
Search Go string literals for one or more case-insensitive substrings and return file, line, literal, and enclosing function. Find raw routes, URLs, SQL fragments, headers, or messages instead of using grep.
Instructions
Search Go string literals in the indexed source files for one or more case-insensitive substrings (OR semantics), returning file, line, the literal, and its enclosing function. Route-shaped terms match any path-parameter spelling (:id, {id}, *id). Source is read through the confined repository reader; unreadable files are named in a warning. WHEN TO USE: To find raw route strings, URLs, SQL fragments, header names, or messages that are not symbols, instead of grep. NOT TO USE: For symbols (use gograph_query) or registered routes with handlers (use gograph_routes). RETURNS: gograph.results.v1 rows of kind string with total/returned/truncated/next_cursor.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gograph_strings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Absolute path of your checkout or worktree (alias cwd). | |
| term | No | Substring to find inside string literals (e.g. '/api/setup/license') | |
| limit | No | Rows per page. | |
| query | No | Alias of term | |
| terms | No | Optional list of substrings combined with OR semantics | |
| cursor | No | next_cursor from the previous page. | |
| no_tests | No | Exclude *_test.go files | |
| intention | No | Rationale; required with an active session. | |
| session_id | No | Session from session_create; omit for none. |