Query Traits
query_traitsFind functions by inferred behavioral trait—fallible, asyncContext, generator—to locate all code with a specific capability in the call graph.
Instructions
Find functions by inferred behavioral trait — "fallible" (can fail, including transitively via callees that throw), "asyncContext" (carries async state), "generator" (yields values). Traits are semantic properties inferred from the call graph, not just syntax. Use this when you need to find all code with a specific capability. For syntactic tags (explicit throw statements, DB access), use find_by_constraint instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trait | Yes | The trait or capability to search for (e.g., "fallible", "asyncContext") | |
| project | No | Project name (required in multi-project mode). Use list_projects to see available projects. |