pub struct TraceParams {
pub semantic_path: String,
pub scope: TraceScope,
pub max_depth: u32,
pub max_references: u32,
pub offset: u32,
}Expand description
Parameters for the trace tool.
Fields§
§semantic_path: StringSemantic path to the target symbol (e.g., src/mod.rs::func). MUST include file path and ‘::’.
scope: TraceScopeWhat to trace: callers (default), references, or overview.
max_depth: u32Traversal depth for call hierarchy (max: 5). Only used with scope=callers.
Each depth level requires additional LSP round-trips, so deeper traversal is slower.
Use max_depth=1 for a fast, shallow result (direct callers/callees only).
Use max_depth=2 or max_depth=3 for moderate transitive analysis.
Reserve max_depth=4 or max_depth=5 for large-scale architectural analysis.
max_references: u32Maximum total references to return (clamped to 1..=500). Prevents context overflow on large codebases. Default: 50.
In overview scope, this single parameter controls both the
callers/callees cap and the references cap (both set to this value).
offset: u32Number of results to skip before returning (for pagination).
Trait Implementations§
Source§impl Debug for TraceParams
impl Debug for TraceParams
Source§impl Default for TraceParams
impl Default for TraceParams
Source§impl<'de> Deserialize<'de> for TraceParams
impl<'de> Deserialize<'de> for TraceParams
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 TraceParams
impl JsonSchema for TraceParams
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