get_filing_size
Check an SEC filing document's exact size before downloading to decide whether to read its text or share the link only.
Instructions
Get the exact size of a filing document BEFORE downloading it.
Use this to decide between reading the text (download_filing_text) and giving the user the link only. Sizes come from the EDGAR filing index.
Args: filing_url: Filing document URL (https://www.sec.gov/Archives/edgar/data/...)
Returns: size_bytes, size_mb, recommendation ('read_text' or 'link_only') and filing_url
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filing_url | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |