Use this tool to search and analyze code structure in the codebase knowledge graph. It provides code snippets with AST type, language, name, and file location.

**search** — Use this operation to find code by query:
- Set operation="search"
- Provide query string to search code content
- Use astType to filter by code element type
- Use language to filter by programming language
- Returns code snippets with related edges when available

**queryEdges** — Use this operation to explore code relationships:
- Set operation="queryEdges"
- Provide nodeId to get node information and all connected relations
- Returns node details and incoming/outgoing edges (shown as [in] or [out])
- Useful for understanding code dependencies and navigation

## Supported Filter Values

**astType** — Code element types:
`class_declaration`, `class_definition`, `function_declaration`, `function_definition`, `method_definition`, `method_declaration`, `interface_declaration`, `type_alias_declaration`, `enum_declaration`, `variable_declaration`, `import_declaration`, `import_statement`, `struct_declaration`, `struct_specifier`

**language** — Programming languages:
`ts`, `tsx`, `js`, `jsx`, `py`, `rs`, `go`, `c`, `cpp`, `csharp`, `java`, `scala`, `ruby`, `php`, `zig`

Use this tool when you need to:
- Understand code structure and implementation details
- Find specific functions, classes, or code patterns
- Explore relationships between code elements
- Navigate code dependencies
