gograph_strings
Search Go string literals for case-insensitive substrings with OR semantics, returning file, line, literal, and enclosing function; route-shaped terms match path-parameter spellings.
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. The MCP server refreshes source analysis before the call. Read-only; no side effects. 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Absolute path of the checkout you are working in (your cwd or git worktree). Must be this server's repository or one of its git worktrees; the answer then comes from that checkout's own graph. A path elsewhere is refused. Alias: cwd. Omit only when the configured checkout is the one you mean. | |
| term | No | Substring to find inside string literals (e.g. '/api/setup/license') | |
| limit | No | Maximum rows per page; the byte budget may return fewer. | |
| query | No | Alias of term | |
| terms | No | Optional list of substrings combined with OR semantics | |
| cursor | No | Opaque next_cursor for the same graph snapshot and result selection. | |
| no_tests | No | Exclude *_test.go files | |
| intention | No | Technical rationale, required for analytical calls selecting an active session. | |
| session_id | No | Caller selector returned by session_create. Omission means an independent caller; never inherits server environment or another caller's session. |