download_filing_text
Read or search the text of a single SEC filing, returning paged content or matching snippets; if the file is too large, get its link and size instead.
Instructions
Read or search the text of one SEC filing document. Three modes, chosen automatically:
mode 'text': returns
contentin pages of max_length characters. If has_more is true, call again with offset=next_offset to keep reading.mode 'search': when
searchis given, returns snippets around each match with its position (use offset=position to read that part).mode 'link_only': when the document is larger than the size limit, returns only the link and size so the user can open it. The exact size is checked BEFORE downloading.
Args: filing_url: Filing document URL (https://www.sec.gov/Archives/edgar/data/...) max_length: Characters per page (default 50,000) offset: Character position to start reading from (default 0) search: Optional word or phrase to find inside the filing (case-insensitive)
Returns: Dictionary with mode, filing_url, size_mb, total_characters and content/snippets
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | ||
| search | No | ||
| filing_url | Yes | ||
| max_length | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |