Reference System Tools
expand_reference
#![allow(unused)] fn main() { // --- Parameters ----------------------- #[derive(Debug, Serialize, Deserialize, schemars::JsonSchema)] pub struct ExpandReferenceParams { /// The reference ID to expand pub id: String, } // --- Tool definition ------------------ #[tool(description = " Expand a compact reference (denoted as `<symposium-ref id='..'/>`) to get full context. \ Invoke with the contents of `id` attribute. Returns structured JSON with all available context data. \ ")] async fn expand_reference( &self, Parameters(params): Parameters<ExpandReferenceParams>, ) -> Result<CallToolResult, McpError> { }
Use case: Retrieve stored context for compact references. Also retrieves the bootup prompt ("yiasou") and the various guidance files that are embedded (e.g., "main.md").