Rebuild From Screenshot
You are recreating a chart layout from a user-provided screenshot using vision + MCP tools.
Step 1: Receive the Screenshot
The user pastes an image. Visually read it and extract:
- Symbol — from the top-left ticker label
- Timeframe — from the resolution selector (e.g., "5", "15", "1H", "D")
- Chart type — Candles, Heikin Ashi, Line, Bars, etc.
- Indicators — every pane + overlay study (names + approximate params like "EMA(200)")
- Drawings — trend lines, rectangles, horizontal levels, text
- Visible date range — leftmost to rightmost bar dates
Step 2: Capture Live Chart State
chart_vision_read — returns combined image + readings (symbol, timeframe, indicator list, key values) in one call. Prefer this over separate capture_screenshot + chart_get_state for this workflow.
If chart_vision_read fails with CHART_LOADING, wait and retry once.
Step 3: Diff
Compare the pasted screenshot against the chart_vision_read output. Build a minimal change list:
- Symbol match? If not, queue
chart_set_symbol
- Timeframe match? If not, queue
chart_set_timeframe
- Indicator set — which to add, which to remove, which to reconfigure
- Drawings — which to add (source coords from the screenshot), which to clear
Step 4: Apply Changes
Execute in this order to minimize reflows:
chart_set_symbol (e.g., "NASDAQ:TSLA")
chart_set_timeframe (e.g., "60")
chart_set_type if needed (e.g., "HeikinAshi")
- For each missing indicator:
chart_manage_indicator with action "add" and the full name ("Moving Average Exponential", not "EMA")
indicator_set_inputs to match params (e.g., EMA length 200)
- For each drawing:
- Horizontal level →
draw_shape with horizontal_line at the price from the screenshot
- Trend line →
draw_shape with trend_line + two {time, price} points
- Text →
draw_shape with text
- If leftover studies/drawings don't belong:
chart_manage_indicator remove + draw_remove_one by id
Concrete example — rebuilding a TSLA 1H chart with EMA(20)/EMA(200) and a horizontal at 250.00:
chart_set_symbol("NASDAQ:TSLA")
chart_set_timeframe("60")
chart_manage_indicator({ action: "add", name: "Moving Average Exponential" })
indicator_set_inputs({ length: 20 })
chart_manage_indicator({ action: "add", name: "Moving Average Exponential" })
indicator_set_inputs({ length: 200 })
draw_shape({ type: "horizontal_line", point: { price: 250.00 } })
Step 5: Verify
chart_vision_read again — confirm the new live state
- Diff once more against the user's screenshot
- If mismatches remain (e.g., indicator param still off), iterate on step 4
Step 6: Report
Tell the user what was applied, what couldn't be matched exactly (e.g., proprietary indicators not recognizable by name), and show the final screenshot path.
Error Notes
CHART_LOADING — chart still rendering; wait 1-2s and retry
INDICATOR_NOT_FOUND — name in screenshot isn't a built-in (likely custom Pine); ask user to load it manually
- If colors/styles matter for the match, mention them but don't chase perfection — focus on structural fidelity
1---2name: rebuild-from-screenshot-43description: Reproduce a chart from a screenshot — read the user's pasted image, diff against the live chart, then set symbol/indicators/drawings to match. Use when the user pastes a chart image and says "recreate this" or "set up my chart like this".4metadata:5 source: https://skillmd.com/skills/ferroxlabs/rebuild-from-screenshot-46---78# Rebuild From Screenshot910You are recreating a chart layout from a user-provided screenshot using vision + MCP tools.1112## Step 1: Receive the Screenshot1314The user pastes an image. Visually read it and extract:1516- **Symbol** — from the top-left ticker label17- **Timeframe** — from the resolution selector (e.g., "5", "15", "1H", "D")18- **Chart type** — Candles, Heikin Ashi, Line, Bars, etc.19- **Indicators** — every pane + overlay study (names + approximate params like "EMA(200)")20- **Drawings** — trend lines, rectangles, horizontal levels, text21- **Visible date range** — leftmost to rightmost bar dates2223## Step 2: Capture Live Chart State24251. `chart_vision_read` — returns combined image + readings (symbol, timeframe, indicator list, key values) in one call. Prefer this over separate `capture_screenshot` + `chart_get_state` for this workflow.2627If `chart_vision_read` fails with `CHART_LOADING`, wait and retry once.2829## Step 3: Diff3031Compare the pasted screenshot against the `chart_vision_read` output. Build a minimal change list:3233- Symbol match? If not, queue `chart_set_symbol`34- Timeframe match? If not, queue `chart_set_timeframe`35- Indicator set — which to add, which to remove, which to reconfigure36- Drawings — which to add (source coords from the screenshot), which to clear3738## Step 4: Apply Changes3940Execute in this order to minimize reflows:41421. `chart_set_symbol` (e.g., `"NASDAQ:TSLA"`)432. `chart_set_timeframe` (e.g., `"60"`)443. `chart_set_type` if needed (e.g., `"HeikinAshi"`)454. For each missing indicator: `chart_manage_indicator` with action `"add"` and the **full name** ("Moving Average Exponential", not "EMA")465. `indicator_set_inputs` to match params (e.g., EMA length 200)476. For each drawing:48 - Horizontal level → `draw_shape` with `horizontal_line` at the price from the screenshot49 - Trend line → `draw_shape` with `trend_line` + two `{time, price}` points50 - Text → `draw_shape` with `text`517. If leftover studies/drawings don't belong: `chart_manage_indicator` remove + `draw_remove_one` by id5253Concrete example — rebuilding a TSLA 1H chart with EMA(20)/EMA(200) and a horizontal at 250.00:5455```56chart_set_symbol("NASDAQ:TSLA")57chart_set_timeframe("60")58chart_manage_indicator({ action: "add", name: "Moving Average Exponential" })59indicator_set_inputs({ length: 20 })60chart_manage_indicator({ action: "add", name: "Moving Average Exponential" })61indicator_set_inputs({ length: 200 })62draw_shape({ type: "horizontal_line", point: { price: 250.00 } })63```6465## Step 5: Verify66671. `chart_vision_read` again — confirm the new live state682. Diff once more against the user's screenshot693. If mismatches remain (e.g., indicator param still off), iterate on step 47071## Step 6: Report7273Tell the user what was applied, what couldn't be matched exactly (e.g., proprietary indicators not recognizable by name), and show the final screenshot path.7475## Error Notes7677- `CHART_LOADING` — chart still rendering; wait 1-2s and retry78- `INDICATOR_NOT_FOUND` — name in screenshot isn't a built-in (likely custom Pine); ask user to load it manually79- If colors/styles matter for the match, mention them but don't chase perfection — focus on structural fidelity