Skip to content

Drawings

Read, create, copy, update and delete drawings on the chart.

Generated from the pinned chart source (1aa5e22). Descriptions are the exact text the model receives.

drawings_list

List drawingsRead-onlyRuns in parallelChart coreSource

List every committed chart drawing. Anchors use timestamp and price; rendering indexes and interaction previews are not exposed.

Parameters

This tool takes no input.

JSON Schema
…

drawing_create

Create drawingModifies the chartRuns in orderChart coreSource

Create a committed chart drawing using a supported kind and an existing paneId. Required anchor count by kind — 1: horizontal-line, horizontal-ray, vertical-line, cross-line; 2: trend-line, ray, extended-line, fib-retracement, rectangle, arrow, info-line, regression-channel; 3: parallel-channel, flat-line, disjoint-channel. horizontal-line anchors require only price; all other anchors require tradingDate in YYYY-MM-DD format and price. labels is the complete text model keyed by the rendered line or area index.

Parameters

NameTypeRequiredConstraintsDescription
kindenumYesone of "trend-line", "ray", "extended-line", "fib-retracement", "rectangle", "arrow", "horizontal-line", "horizontal-ray", "vertical-line", "cross-line", "info-line", "parallel-channel", "regression-channel", "flat-line", "disjoint-channel"
paneIdstringYesmin length 1
anchorsobject[]Yesmin items 1; max items 3
anchors[].tradingDatestring—pattern ^\d{4}-\d{2}-\d{2}$
anchors[].pricenumberYes—
styleobject——
style.strokeenum—one of "#4A90D9", "#7C6FCD", "#C08457", "#8B5E83", "#9CA3AF"
style.strokeWidthnumber—> 0
style.strokeStyleenum—one of "solid", "dashed", "dotted"
style.fillenum—one of "#4A90D9", "#7C6FCD", "#C08457", "#8B5E83", "#9CA3AF"
style.fillOpacitynumber—≥ 0; ≤ 1
style.pointRadiusnumber—> 0
style.textColorenum—one of "#4A90D9", "#7C6FCD", "#C08457", "#8B5E83", "#9CA3AF"
style.fontSizenumber—> 0
labelsobject—closed
labels.linerecord—closed键为渲染输出的线段或区域序号,从 "0" 起的字符串数字。
labels.line.<n>.textstring——标签文本。使用字面量 \n 作为唯一换行控制码。
labels.line.<n>.positionenum—one of "start", "center", "end"
labels.arearecord—closed键为渲染输出的线段或区域序号,从 "0" 起的字符串数字。
labels.area.<n>.textstring——标签文本。使用字面量 \n 作为唯一换行控制码。
labels.area.<n>.positionenum—one of "start", "center", "end"
visibleboolean——
lockedboolean——
zIndexnumber——

Minimal input · Required fields only; placeholders are derived from the schema.

{
  "kind": "trend-line",
  "paneId": "<paneId>",
  "anchors": [
    {
      "price": 0
    }
  ]
}
JSON Schema
…

drawings_copy

Copy drawingsModifies the chartRuns in orderChart coreSource

Copy drawings by ID with a shared screen offset. Selects visible, unlocked copies; the entire group is one undo step.

Parameters

NameTypeRequiredConstraintsDescription
drawingIdsstring[]Yesmin items 1; item min length 1

Minimal input · Required fields only; placeholders are derived from the schema.

{
  "drawingIds": [
    "<drawingId>"
  ]
}
JSON Schema
…

drawing_update

Update drawingModifies the chartRuns in orderChart coreSource

Update a committed chart drawing by id. labels replaces the complete text model; obtain it from drawings_list before changing it. Supply at least one patch field. Required anchor count by kind — 1: horizontal-line, horizontal-ray, vertical-line, cross-line; 2: trend-line, ray, extended-line, fib-retracement, rectangle, arrow, info-line, regression-channel; 3: parallel-channel, flat-line, disjoint-channel. horizontal-line anchors require only price; all other anchors require tradingDate in YYYY-MM-DD format and price.

Parameters

NameTypeRequiredConstraintsDescription
drawingIdstringYesmin length 1
patchobjectYes—
patch.anchorsobject[]—min items 1; max items 3
patch.anchors[].tradingDatestring—pattern ^\d{4}-\d{2}-\d{2}$
patch.anchors[].pricenumber——
patch.styleobject——
patch.style.strokeenum—one of "#4A90D9", "#7C6FCD", "#C08457", "#8B5E83", "#9CA3AF"
patch.style.strokeWidthnumber—> 0
patch.style.strokeStyleenum—one of "solid", "dashed", "dotted"
patch.style.fillenum—one of "#4A90D9", "#7C6FCD", "#C08457", "#8B5E83", "#9CA3AF"
patch.style.fillOpacitynumber—≥ 0; ≤ 1
patch.style.pointRadiusnumber—> 0
patch.style.textColorenum—one of "#4A90D9", "#7C6FCD", "#C08457", "#8B5E83", "#9CA3AF"
patch.style.fontSizenumber—> 0
patch.labelsobject—closed
patch.labels.linerecord—closed键为渲染输出的线段或区域序号,从 "0" 起的字符串数字。
patch.labels.arearecord—closed键为渲染输出的线段或区域序号,从 "0" 起的字符串数字。
patch.visibleboolean——
patch.lockedboolean——
patch.zIndexnumber——

Minimal input · Required fields only; placeholders are derived from the schema.

{
  "drawingId": "<drawingId>",
  "patch": {}
}
JSON Schema
…

drawing_delete

Delete drawingModifies the chartRuns in orderChart coreSource

Delete one committed chart drawing by id. Returns whether a drawing was removed.

Parameters

NameTypeRequiredConstraintsDescription
drawingIdstringYesmin length 1

Minimal input · Required fields only; placeholders are derived from the schema.

{
  "drawingId": "<drawingId>"
}
JSON Schema
…

drawings_clear

Clear drawingsModifies the chartRuns in orderChart coreSource

Delete every committed chart drawing. Interaction previews are not persisted and are unaffected.

Parameters

This tool takes no input.

JSON Schema
…

On this page