Skip to main content

find_references

Find all references to a symbol (type, method, property, field, or event) across the solution, each tagged with a kind. Kinds: read, write, readwrite (compound assignment / ++ / ref), invocation, method_group, object_creation, cast, type_check (is / patterns / as-tests), typeof, base_type, type_constraint, type_argument, declaration, attribute, nameof, xml_doc, and usage (rare fallback). Pass kinds to return only some (e.g. ["write","readwrite"] for mutation sites). Envelope adds a byKind summary. Multiple references on one line are reported separately with a column.

Parameters

ParameterTypeRequiredDescription
symbolstringSymbol name: simple type (MyClass), fully qualified (Namespace.MyClass), or member (MyClass.MyProperty)
kindsString[]Optional kind filter - only references of these kinds are returned (see the kind list above)
limitint?Maximum number of items to return (default: 500). Items are sorted by file, line, column.