Drawings on a chart: placed by their anchors as a person places them, changed, moved, locked, given levels, found, undone and deleted. An agent's drawings carry its name.
Reached from a connected client as client.drawing in Python, client.drawing in JavaScript, client.drawing() in Rust — each tool below shows its call in every language.
object_change#
Change a drawing
Changes a drawing's colour, width, style, fill, text, levels, scalar, lock or the intervals it is drawn on, as its properties window does, or puts its look back with reset. Its points stay (object_move moves them). Answers the drawing.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
object | string | yes | — | |
patch | any | — | — | Fields of the drawing's saved form laid over it: color [r,g,b,a], width (1 to 5), style, fill, text, levels [..], param, locked, visibility. |
reset | boolean | — | false | Width, style, fill, text, levels and the scalar back to the kind's own, and the colour to the ink, as the properties window's Reset. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "object_change",
"arguments": {
"object": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.drawing
def object_change(self, object: str, *, patch: Optional[Any] = None, reset: Optional[bool] = None) -> Dict[str, Any]JavaScript
client.drawing
objectChange(args)C#
client.Drawing
public Task<JsonNode?> ObjectChange(string @object, object? patch = null, bool? reset = null, CancellationToken ct = default)Go
client.Drawing
func (a *DrawingAPI) ObjectChange(ctx context.Context, args DrawingObjectChangeArgs) (any, error)Java
client.drawing
public Object objectChange(ObjectChangeArgs args)C++
client.drawing
Json object_change(const ObjectChangeArgs &args)Julia
client.drawing
object_change = (object; patch = nothing, reset = nothing)R
client$drawing
`object_change` = function(object, patch = NULL, reset = NULL)Rust
client.drawing()
pub fn object_change(&self, args: DrawingObjectChangeArgs) -> Result<Value, Error>object_delete#
Delete a drawing
Deletes a drawing through the chart's own Delete, so object_undo brings it back. Answers the chart.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
object | string | yes | — | The drawing's uri, as the chart's answer gives it. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "object_delete",
"arguments": {
"object": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.drawing
def object_delete(self, object: str) -> Dict[str, Any]JavaScript
client.drawing
objectDelete(args)C#
client.Drawing
public Task<JsonNode?> ObjectDelete(string @object, CancellationToken ct = default)Go
client.Drawing
func (a *DrawingAPI) ObjectDelete(ctx context.Context, args DrawingObjectDeleteArgs) (any, error)Java
client.drawing
public Object objectDelete(ObjectDeleteArgs args)C++
client.drawing
Json object_delete(const ObjectDeleteArgs &args)Julia
client.drawing
object_delete = (object)R
client$drawing
`object_delete` = function(object)Rust
client.drawing()
pub fn object_delete(&self, args: DrawingObjectDeleteArgs) -> Result<Value, Error>object_delete_by_author#
Remove an author's drawings
Removes every drawing one agent drew on a chart, as the chart's Remove <name>'s drawings does; the person's own drawings are never among them. Answers the chart and how many went.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
author | string | — | — | Agent:<pairing>, as a drawing's author reads; absent: this agent's own. |
chart | string | yes | — | The chart's uri. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "object_delete_by_author",
"arguments": {
"chart": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.drawing
def object_delete_by_author(self, chart: str, *, author: Optional[str] = None) -> Dict[str, Any]JavaScript
client.drawing
objectDeleteByAuthor(args)C#
client.Drawing
public Task<JsonNode?> ObjectDeleteByAuthor(string chart, string? author = null, CancellationToken ct = default)Go
client.Drawing
func (a *DrawingAPI) ObjectDeleteByAuthor(ctx context.Context, args DrawingObjectDeleteByAuthorArgs) (any, error)Java
client.drawing
public Object objectDeleteByAuthor(ObjectDeleteByAuthorArgs args)C++
client.drawing
Json object_delete_by_author(const ObjectDeleteByAuthorArgs &args)Julia
client.drawing
object_delete_by_author = (chart; author = nothing)R
client$drawing
`object_delete_by_author` = function(chart, author = NULL)Rust
client.drawing()
pub fn object_delete_by_author(&self, args: DrawingObjectDeleteByAuthorArgs) -> Result<Value, Error>object_find#
Find drawings
Lists a chart's drawings, of one kind, with a point in a span of time, by an author (agent:<pairing>, or person) or in a study's pane, with their uris and saved forms (author and pane among them).
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
author | string | — | — | Only drawings by this author: agent:<pairing> for an agent's, or "person" for the person's own. |
chart | string | yes | — | |
from_ms | integer | — | — | Only drawings with a point at or after this moment. |
kind | string | — | — | Only drawings of this kind. |
pane | integer | — | — | Only drawings in this study's pane (its id); absent: every pane. |
to_ms | integer | — | — | Only drawings with a point at or before this moment. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "object_find",
"arguments": {
"chart": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.drawing
def object_find(self, chart: str, *, author: Optional[str] = None, from_ms: Optional[int] = None, kind: Optional[str] = None, pane: Optional[int] = None, to_ms: Optional[int] = None) -> Dict[str, Any]JavaScript
client.drawing
objectFind(args)C#
client.Drawing
public Task<JsonNode?> ObjectFind(string chart, string? author = null, long? fromMs = null, string? kind = null, long? pane = null, long? toMs = null, CancellationToken ct = default)Go
client.Drawing
func (a *DrawingAPI) ObjectFind(ctx context.Context, args DrawingObjectFindArgs) (any, error)Java
client.drawing
public Object objectFind(ObjectFindArgs args)C++
client.drawing
Json object_find(const ObjectFindArgs &args)Julia
client.drawing
object_find = (chart; author = nothing, from_ms = nothing, kind = nothing, pane = nothing, to_ms = nothing)R
client$drawing
`object_find` = function(chart, author = NULL, from_ms = NULL, kind = NULL, pane = NULL, to_ms = NULL)Rust
client.drawing()
pub fn object_find(&self, args: DrawingObjectFindArgs) -> Result<Value, Error>object_lock#
Lock or unlock a drawing
Locks a drawing, so no drag moves it, or unlocks it, as the floating bar's lock does. Answers the drawing.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
locked | boolean | yes | — | |
object | string | yes | — |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "object_lock",
"arguments": {
"locked": true,
"object": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.drawing
def object_lock(self, object: str, locked: bool) -> Dict[str, Any]JavaScript
client.drawing
objectLock(args)C#
client.Drawing
public Task<JsonNode?> ObjectLock(string @object, bool locked, CancellationToken ct = default)Go
client.Drawing
func (a *DrawingAPI) ObjectLock(ctx context.Context, args DrawingObjectLockArgs) (any, error)Java
client.drawing
public Object objectLock(ObjectLockArgs args)C++
client.drawing
Json object_lock(const ObjectLockArgs &args)Julia
client.drawing
object_lock = (object, locked)R
client$drawing
`object_lock` = function(object, locked)Rust
client.drawing()
pub fn object_lock(&self, args: DrawingObjectLockArgs) -> Result<Value, Error>object_move#
Move a drawing's points
Moves some of a drawing's points in time, in price or both, as a drag of its handles does. A locked drawing is not moved. Answers the drawing.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
anchors | array of object | yes | — | |
anchors[].index | integer | yes | — | Which point, from 0 in placement order. |
anchors[].price | number | — | — | |
anchors[].t_ms | integer | — | — | |
object | string | yes | — |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "object_move",
"arguments": {
"anchors": [],
"object": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.drawing
def object_move(self, object: str, anchors: List[MovedAnchor]) -> Dict[str, Any]JavaScript
client.drawing
objectMove(args)C#
client.Drawing
public Task<JsonNode?> ObjectMove(string @object, object anchors, CancellationToken ct = default)Go
client.Drawing
func (a *DrawingAPI) ObjectMove(ctx context.Context, args DrawingObjectMoveArgs) (any, error)Java
client.drawing
public Object objectMove(ObjectMoveArgs args)C++
client.drawing
Json object_move(const ObjectMoveArgs &args)Julia
client.drawing
object_move = (object, anchors)R
client$drawing
`object_move` = function(object, anchors)Rust
client.drawing()
pub fn object_move(&self, args: DrawingObjectMoveArgs) -> Result<Value, Error>object_place#
Draw on a chart
Places a drawing of one kind at the given points, as a person's press and drag places it; every chart type takes one. With pane, in that study's own pane, its prices the study's values (every kind; the two regression channels fit the study's line there). The drawing carries this agent as its author, which the person sees and can remove it by. Answers the chart and the drawing with its uri.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
anchors | array of object | yes | — | Its points, as many as the kind has, in placement order. |
anchors[].price | number | yes | — | |
anchors[].t_ms | integer | yes | — | The moment, as an epoch millisecond on the bench's feed. |
chart | string | yes | — | The chart's uri. |
colour | array of integer (0–255) | — | — | [r, g, b] or [r, g, b, a]; the colour a new drawing starts in when absent. |
kind | string | yes | — | The drawing's kind, as a chart's setup names it (setup.objects[].kind): trend_line, horizontal_line, rectangle, fib_retracement, text_label,... |
levels | string | — | — | The kind's level list, as the properties window takes it: "0, 23.6, 38.2, 50, 61.8, 100". |
pane | integer | — | — | A study of this chart that draws its own pane (an oscillator, by its id in the chart's answer): the drawing stands there and its prices are that study's values. Absent: the price pane. |
text | string | — | — | A text drawing's label, or a shape's name. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "object_place",
"arguments": {
"anchors": [],
"chart": "…",
"kind": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.drawing
def object_place(self, chart: str, kind: str, anchors: List[AnchorArg], *, colour: Optional[List[int]] = None, levels: Optional[str] = None, pane: Optional[int] = None, text: Optional[str] = None) -> Dict[str, Any]JavaScript
client.drawing
objectPlace(args)C#
client.Drawing
public Task<JsonNode?> ObjectPlace(string chart, string kind, object anchors, IReadOnlyList<long>? colour = null, string? levels = null, long? pane = null, string? text = null, CancellationToken ct = default)Go
client.Drawing
func (a *DrawingAPI) ObjectPlace(ctx context.Context, args DrawingObjectPlaceArgs) (any, error)Java
client.drawing
public Object objectPlace(ObjectPlaceArgs args)C++
client.drawing
Json object_place(const ObjectPlaceArgs &args)Julia
client.drawing
object_place = (chart, kind, anchors; colour = nothing, levels = nothing, pane = nothing, text = nothing)R
client$drawing
`object_place` = function(chart, kind, anchors, colour = NULL, levels = NULL, pane = NULL, text = NULL)Rust
client.drawing()
pub fn object_place(&self, args: DrawingObjectPlaceArgs) -> Result<Value, Error>object_set_levels#
Set a drawing's levels
Sets the level list of a drawing that has one (a Fibonacci, a Gann fan), read as the properties window reads it; a list it could not read is refused in its words and changes nothing. Answers the drawing.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
levels | string | yes | — | The level list as the properties window takes it: "0, 23.6, 38.2, 50, 61.8, 100". |
object | string | yes | — |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "object_set_levels",
"arguments": {
"levels": "…",
"object": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.drawing
def object_set_levels(self, object: str, levels: str) -> Dict[str, Any]JavaScript
client.drawing
objectSetLevels(args)C#
client.Drawing
public Task<JsonNode?> ObjectSetLevels(string @object, string levels, CancellationToken ct = default)Go
client.Drawing
func (a *DrawingAPI) ObjectSetLevels(ctx context.Context, args DrawingObjectSetLevelsArgs) (any, error)Java
client.drawing
public Object objectSetLevels(ObjectSetLevelsArgs args)C++
client.drawing
Json object_set_levels(const ObjectSetLevelsArgs &args)Julia
client.drawing
object_set_levels = (object, levels)R
client$drawing
`object_set_levels` = function(object, levels)Rust
client.drawing()
pub fn object_set_levels(&self, args: DrawingObjectSetLevelsArgs) -> Result<Value, Error>object_undo#
Take back the last drawing step
Takes back the chart's last drawing step — a deletion, or the properties' changes — as Ctrl+Z on the chart does. Answers the chart and which drawing came back, if one did.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
chart | string | yes | — | The chart's uri. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "object_undo",
"arguments": {
"chart": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.drawing
def object_undo(self, chart: str) -> Dict[str, Any]JavaScript
client.drawing
objectUndo(args)C#
client.Drawing
public Task<JsonNode?> ObjectUndo(string chart, CancellationToken ct = default)Go
client.Drawing
func (a *DrawingAPI) ObjectUndo(ctx context.Context, args DrawingObjectUndoArgs) (any, error)Java
client.drawing
public Object objectUndo(ObjectUndoArgs args)C++
client.drawing
Json object_undo(const ObjectUndoArgs &args)Julia
client.drawing
object_undo = (chart)R
client$drawing
`object_undo` = function(chart)Rust
client.drawing()
pub fn object_undo(&self, args: DrawingObjectUndoArgs) -> Result<Value, Error>