gograph_query
Search the Go graph index by one or more keyword substrings to locate matching symbols, packages, files, and import edges during initial exploration.
Instructions
Search the graph index for symbols, packages, files, and import edges that match one or more keyword substrings. Multiple terms use OR semantics, matching CLI query term.... WHEN TO USE: During initial exploration when you have a keyword or feature name but do not know its package. NOT TO USE: When you already know the exact symbol (use gograph_source or gograph_node); for package dependency trees (use gograph_deps). RETURNS: Matching symbols, files, and imports; empty when no terms match.
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_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Absolute path of your checkout or worktree (alias cwd). | |
| term | No | One keyword search term (e.g. 'AuthService' or a route path such as '/api/v1/users/{id}') | |
| limit | No | Rows per page. | |
| query | No | Alias of term | |
| terms | No | Optional list of keyword terms combined with OR semantics | |
| cursor | No | next_cursor from the previous page. | |
| no_tests | No | Exclude rows located in *_test.go files, matching CLI --no-tests | |
| intention | No | Rationale; required with an active session. | |
| session_id | No | Session from session_create; omit for none. |