get_cached_result
Retrieve cached data from portfolio analysis with pagination support. Access specific pages of large datasets like price series and returns without overloading context windows.
Instructions
Retrieve a cached result, optionally with pagination.
Use this to:
Get a preview of a cached value
Paginate through large sequences, price series, or returns data
Access specific pages of a cached result
Args: ref_id: The reference ID returned by tools (e.g., from generate_price_series). page: Page number (1-indexed). If not provided, returns the default preview. page_size: Items per page. Default varies by data type (typically 50).
Returns: Dictionary containing: - ref_id: The reference ID - preview: The data for the current page/preview - preview_strategy: How the preview was generated (sample, truncate, paginate) - total_items: Total number of items in the full dataset - page: Current page number (if paginated) - total_pages: Total pages available (if paginated)
Example: ``` # Generate large price series (returns ref_id + preview) result = generate_price_series(symbols=["AAPL", "GOOG"], days=500)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref_id | Yes | ||
| page | No | ||
| page_size | No |