Capture a TradingView chart for an exact date range
tradingview_capture_periodCapture a TradingView chart for a specified symbol and date range, returning the chart as a PNG image.
Instructions
Open an official TradingView symbol and interval, use the Supercharts Custom range control for the requested YYYY-MM-DD dates, and return the resulting chart as a PNG in one call. The browser closes by default and authentication remains local.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>",
"from": "<from>",
"to": "<to>"
},
"name": "tradingview_capture_period"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Last visible calendar date, in YYYY-MM-DD format. | |
| from | Yes | First visible calendar date, in YYYY-MM-DD format. | |
| width | No | ||
| height | No | ||
| symbol | Yes | TradingView symbol, preferably EXCHANGE:TICKER such as NASDAQ:AAPL. | |
| interval | No | D | |
| layoutId | No | ||
| chartOnly | No | ||
| keepBrowserOpen | No |