pub struct FindAllReferencesMetadata {
pub references: Option<Vec<ReferenceLocation>>,
pub total_references: Option<usize>,
pub truncated: bool,
pub files_referenced: usize,
pub degraded: bool,
pub degraded_reason: Option<DegradedReason>,
pub actionable_guidance: Option<ActionableGuidance>,
pub lsp_readiness: Option<String>,
pub warm_start_in_progress: Option<bool>,
pub duration_ms: Option<u64>,
pub resolution_strategy: Option<String>,
pub hint: Option<String>,
}Expand description
The metadata embedded in structured_content for find_all_references.
Fields§
§references: Option<Vec<ReferenceLocation>>All reference locations for the target symbol.
Empty array [] means LSP confirmed zero references.
null when degraded is true — LSP was unavailable.
total_references: Option<usize>Total number of references found (before pagination).
truncated: boolWhether the results were truncated due to max_results.
files_referenced: usizeTotal number of files containing references.
degraded: boolWhether the reference lookup was degraded (LSP unavailable or crashed).
degraded_reason: Option<DegradedReason>Machine-readable reason for degradation (e.g., no_lsp, lsp_crash, lsp_timeout).
actionable_guidance: Option<ActionableGuidance>Machine-readable guidance when degraded is true.
lsp_readiness: Option<String>LSP readiness at the time of the call.
"ready": LSP is fully operational — results are authoritative."warming_up": LSP is still indexing — results may be partial."unavailable": No LSP; results degraded.
warm_start_in_progress: Option<bool>Whether the LSP warm-start is still in progress at the time of the call.
duration_ms: Option<u64>Wall-clock time in milliseconds that this tool call took to complete.
resolution_strategy: Option<String>Spec 5.2: How the references were resolved.
One of: lsp_references, grep_file_scoped, grep_impl_scoped, grep_global, grep_broad, treesitter_fallback.
hint: Option<String>P2-7: Actionable hint when zero references are found and the result is not degraded. Helps agents distinguish “genuinely unused” from common false-negative scenarios like reflection or dynamic dispatch.
Trait Implementations§
Source§impl Debug for FindAllReferencesMetadata
impl Debug for FindAllReferencesMetadata
Source§impl Default for FindAllReferencesMetadata
impl Default for FindAllReferencesMetadata
Source§fn default() -> FindAllReferencesMetadata
fn default() -> FindAllReferencesMetadata
Source§impl<'de> Deserialize<'de> for FindAllReferencesMetadata
impl<'de> Deserialize<'de> for FindAllReferencesMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for FindAllReferencesMetadata
impl JsonSchema for FindAllReferencesMetadata
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more