News article
get_news_articleRetrieve the full text of a news article using its provider code and article ID, with optional plain-text conversion and character limits.
Instructions
Return the full text of a news article, given its provider code and article id.
Take both from a headline (get_historical_news or a news subscription). HTML
articles are converted to plain text unless plain_text is false. Text longer than
max_chars (default 20000) is cut and truncated is true; total_chars gives the full
length. Binary articles (PDFs) are reported with article_type=binary and their
size, not returned. Needs a subscription to the provider.
Errors: ib_api_error with IBKR's message when the article is unknown or not
permitted; not_found when IBKR sends an empty article.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_chars | No | Longest article text to return, in characters (at most 200,000); a longer article is cut and truncated is true. | |
| article_id | Yes | Article id from the headline, e.g. BRFG$12345. | |
| plain_text | No | Convert HTML articles to plain text (fewer characters). | |
| provider_code | Yes | Provider code from the headline, e.g. BRFG. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Why the text is missing or was converted. | |
| text | No | The article; null for binary articles. | |
| format | No | Whether text is plain text or HTML; null for binary articles. | |
| truncated | No | True when the result was cut to the limit. | |
| article_id | Yes | ||
| total_chars | No | Length of the whole text before truncation. | |
| article_type | Yes | text (plain text or HTML) or binary (a PDF, which is not returned). | |
| binary_bytes | No | Approximate size of a binary (PDF) article, in bytes. | |
| binary_base64 | No | The binary document, base64-encoded as IBKR sent it. Only for library callers that ask for it (``include_binary``); the MCP tool never returns it. | |
| provider_code | Yes |