@ftshare-lab/dsh-kline 0.0.0-stage → 0.6.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/CHANGELOG.md +611 -0
  2. package/LICENSE +21 -0
  3. package/PROVENANCE.md +13 -0
  4. package/README.en.md +171 -0
  5. package/README.md +170 -2
  6. package/chart_service.py +687 -0
  7. package/config/basic-symbols.json +570 -0
  8. package/config/dsh-kline.patch.yml +4 -0
  9. package/config/dsh-tool-catalog.json +3875 -0
  10. package/cordis.patch.yml +33 -0
  11. package/core/__init__.py +0 -0
  12. package/core/adjustment.py +16 -0
  13. package/core/calc.py +691 -0
  14. package/core/rows.py +228 -0
  15. package/core/ta_engine.py +99 -0
  16. package/docs/anonymous-market-support.md +33 -0
  17. package/docs/automatic-drawing.md +24 -0
  18. package/docs/chart-functions.md +136 -0
  19. package/docs/drawing-examples.en.md +13 -0
  20. package/docs/drawing-examples.md +13 -0
  21. package/docs/embedding.md +77 -0
  22. package/docs/fixtures/price-pattern-real-v1.json +1 -0
  23. package/docs/free-foreign-daily.md +44 -0
  24. package/docs/guide.en.md +232 -0
  25. package/docs/guide.md +248 -0
  26. package/docs/images/abc-drawing-v0.5.0.jpg +0 -0
  27. package/docs/images/channel-drawing-v0.5.0.jpg +0 -0
  28. package/docs/images/drawing-workbench-v0.5.0.jpg +0 -0
  29. package/docs/images/dsh-kline-tab-workspace.png +0 -0
  30. package/docs/images/dsh-market.png +0 -0
  31. package/docs/images/kline-news.png +0 -0
  32. package/docs/images/kline-range-stats.png +0 -0
  33. package/docs/images/kline-support.png +0 -0
  34. package/docs/images/main-chart-comparison-v0.6.9.png +0 -0
  35. package/docs/images/market-overview-v0.6.9.png +0 -0
  36. package/docs/images/natural-language-abc-wolong-2026-10-27.png +0 -0
  37. package/docs/images/natural-language-descending-channel-wolong-2026-10-27.png +0 -0
  38. package/docs/images/platform-breakout-msft-v0.6.9.png +0 -0
  39. package/docs/npm-release.md +33 -0
  40. package/docs/price-pattern-rules-v1.md +40 -0
  41. package/docs/price-pattern-samples-v1.md +42 -0
  42. package/docs/provider-adaptation.md +73 -0
  43. package/docs/release-acceptance-v0.4.0.md +46 -0
  44. package/docs/release-acceptance-v0.4.1.md +43 -0
  45. package/docs/release-acceptance-v0.5.0.md +40 -0
  46. package/docs/release-acceptance-v0.6.0.md +33 -0
  47. package/docs/release-acceptance-v0.6.1.md +19 -0
  48. package/docs/release-acceptance-v0.6.10.md +21 -0
  49. package/docs/release-acceptance-v0.6.11.md +21 -0
  50. package/docs/release-acceptance-v0.6.2.md +31 -0
  51. package/docs/release-acceptance-v0.6.3.md +25 -0
  52. package/docs/release-acceptance-v0.6.4.md +24 -0
  53. package/docs/release-acceptance-v0.6.5.md +21 -0
  54. package/docs/release-acceptance-v0.6.6.md +21 -0
  55. package/docs/release-acceptance-v0.6.7.md +18 -0
  56. package/docs/release-acceptance-v0.6.8.md +18 -0
  57. package/docs/release-acceptance-v0.6.9.md +98 -0
  58. package/docs/release-notes-v0.5.0.md +23 -0
  59. package/docs/release-notes-v0.6.0.md +11 -0
  60. package/docs/release-notes-v0.6.1.md +20 -0
  61. package/docs/release-notes-v0.6.10.md +11 -0
  62. package/docs/release-notes-v0.6.11.md +16 -0
  63. package/docs/release-notes-v0.6.2.md +14 -0
  64. package/docs/release-notes-v0.6.3.md +26 -0
  65. package/docs/release-notes-v0.6.4.md +12 -0
  66. package/docs/release-notes-v0.6.5.md +13 -0
  67. package/docs/release-notes-v0.6.6.md +13 -0
  68. package/docs/release-notes-v0.6.7.md +17 -0
  69. package/docs/release-notes-v0.6.8.md +10 -0
  70. package/docs/release-notes-v0.6.9.md +16 -0
  71. package/lib/candle-sequence.js +15 -0
  72. package/lib/chart-adjustment.js +7 -0
  73. package/lib/chart-annotations.js +33 -0
  74. package/lib/chart-applications.js +171 -0
  75. package/lib/chart-context.js +164 -0
  76. package/lib/chart-observation.js +251 -0
  77. package/lib/chart-service-status.js +82 -0
  78. package/lib/chart-source-status.js +39 -0
  79. package/lib/chart-sources.js +354 -0
  80. package/lib/client/BetterSidebarTab.js +70 -0
  81. package/lib/client/ClassicShell.js +254 -0
  82. package/lib/client/KlineContent.js +155 -0
  83. package/lib/client/PanelHost.js +46 -0
  84. package/lib/client/chart-apply.js +73 -0
  85. package/lib/client/chart-context.js +233 -0
  86. package/lib/client/chart-handoff.js +34 -0
  87. package/lib/client/chart-session-resolver.js +74 -0
  88. package/lib/client/client-context.js +1 -0
  89. package/lib/client/conversation.js +88 -0
  90. package/lib/client/default-tab.js +83 -0
  91. package/lib/client/embed.js +50 -0
  92. package/lib/client/generated-view.js +12983 -0
  93. package/lib/client/horizontal-lines.js +19 -0
  94. package/lib/client/host-options.js +41 -0
  95. package/lib/client/host-panels.js +111 -0
  96. package/lib/client/index.js +77 -0
  97. package/lib/client/mode-preferences.js +48 -0
  98. package/lib/client/native-sidebar-contract.js +45 -0
  99. package/lib/client/native-sidebar-register.js +133 -0
  100. package/lib/client/native-sidebar-services.js +1 -0
  101. package/lib/client/native-sidebar.js +98 -0
  102. package/lib/client/sidebar-integration.js +93 -0
  103. package/lib/client/ui-onboarding.js +48 -0
  104. package/lib/client/version.js +14 -0
  105. package/lib/client.js +17581 -0
  106. package/lib/client.js.map +1 -0
  107. package/lib/drawing-feedback.js +284 -0
  108. package/lib/fibonacci.js +18 -0
  109. package/lib/ftshare-settings-bridge.js +159 -0
  110. package/lib/index.js +279 -0
  111. package/lib/labeled-polyline.js +17 -0
  112. package/lib/pattern-groups.js +91 -0
  113. package/lib/price-bands.js +55 -0
  114. package/lib/price-series.js +47 -0
  115. package/lib/price-sticks.js +32 -0
  116. package/lib/types/candle-sequence.d.ts +2 -0
  117. package/lib/types/chart-adjustment.d.ts +2 -0
  118. package/lib/types/chart-annotations.d.ts +4 -0
  119. package/lib/types/chart-applications.d.ts +26 -0
  120. package/lib/types/chart-context.d.ts +14 -0
  121. package/lib/types/chart-observation.d.ts +8 -0
  122. package/lib/types/chart-service-status.d.ts +22 -0
  123. package/lib/types/chart-source-status.d.ts +47 -0
  124. package/lib/types/chart-sources.d.ts +25 -0
  125. package/lib/types/client/BetterSidebarTab.d.ts +12 -0
  126. package/lib/types/client/ClassicShell.d.ts +4 -0
  127. package/lib/types/client/KlineContent.d.ts +37 -0
  128. package/lib/types/client/PanelHost.d.ts +25 -0
  129. package/lib/types/client/chart-apply.d.ts +13 -0
  130. package/lib/types/client/chart-context.d.ts +23 -0
  131. package/lib/types/client/chart-handoff.d.ts +5 -0
  132. package/lib/types/client/chart-session-resolver.d.ts +2 -0
  133. package/lib/types/client/client-context.d.ts +16 -0
  134. package/lib/types/client/conversation.d.ts +43 -0
  135. package/lib/types/client/default-tab.d.ts +3 -0
  136. package/lib/types/client/embed.d.ts +37 -0
  137. package/lib/types/client/generated-view.d.ts +2 -0
  138. package/lib/types/client/horizontal-lines.d.ts +1 -0
  139. package/lib/types/client/host-options.d.ts +38 -0
  140. package/lib/types/client/host-panels.d.ts +55 -0
  141. package/lib/types/client/index.d.ts +4 -0
  142. package/lib/types/client/mode-preferences.d.ts +25 -0
  143. package/lib/types/client/native-sidebar-contract.d.ts +52 -0
  144. package/lib/types/client/native-sidebar-register.d.ts +46 -0
  145. package/lib/types/client/native-sidebar-services.d.ts +45 -0
  146. package/lib/types/client/native-sidebar.d.ts +47 -0
  147. package/lib/types/client/sidebar-integration.d.ts +12 -0
  148. package/lib/types/client/ui-onboarding.d.ts +7 -0
  149. package/lib/types/client/version.d.ts +1 -0
  150. package/lib/types/drawing-feedback.d.ts +5 -0
  151. package/lib/types/fibonacci.d.ts +5 -0
  152. package/lib/types/ftshare-settings-bridge.d.ts +50 -0
  153. package/lib/types/index.d.ts +26 -0
  154. package/lib/types/labeled-polyline.d.ts +11 -0
  155. package/lib/types/pattern-groups.d.ts +2 -0
  156. package/lib/types/price-bands.d.ts +3 -0
  157. package/lib/types/price-series.d.ts +5 -0
  158. package/lib/types/price-sticks.d.ts +3 -0
  159. package/package.json +155 -4
  160. package/requirements.txt +6 -0
  161. package/screenshots.json +8 -0
  162. package/scripts/bootstrap.sh +5 -0
  163. package/scripts/dsh-bootstrap.mjs +179 -0
  164. package/scripts/dsh-mcp-plugin.mjs +27 -0
  165. package/scripts/run-dsh-kline.mjs +658 -0
  166. package/scripts/run-dsh-kline.sh +5 -0
  167. package/server.py +1755 -0
  168. package/tools/__init__.py +0 -0
  169. package/tools/annotations.py +119 -0
  170. package/tools/automatic_analysis.py +158 -0
  171. package/tools/baostock_source.py +176 -0
  172. package/tools/calc.py +39 -0
  173. package/tools/channel_candidates.py +260 -0
  174. package/tools/channel_preview.py +82 -0
  175. package/tools/channels.py +104 -0
  176. package/tools/chart_applications.py +204 -0
  177. package/tools/chart_context.py +186 -0
  178. package/tools/chart_edits.py +363 -0
  179. package/tools/chart_functions.py +451 -0
  180. package/tools/chart_indicators.py +65 -0
  181. package/tools/chart_measurements.py +84 -0
  182. package/tools/chart_source_status.py +32 -0
  183. package/tools/chart_sources.py +31 -0
  184. package/tools/closed_daily.py +68 -0
  185. package/tools/draw.py +410 -0
  186. package/tools/drawing_feedback.py +45 -0
  187. package/tools/drawing_interaction.py +117 -0
  188. package/tools/drawing_verification.py +141 -0
  189. package/tools/fetch.py +4680 -0
  190. package/tools/fibonacci.py +83 -0
  191. package/tools/foreign_daily.py +185 -0
  192. package/tools/free_sources.py +483 -0
  193. package/tools/lines.py +91 -0
  194. package/tools/nine_count.py +66 -0
  195. package/tools/pattern_groups.py +103 -0
  196. package/tools/pivots.py +60 -0
  197. package/tools/polylines.py +131 -0
  198. package/tools/price_bands.py +165 -0
  199. package/tools/price_patterns.py +311 -0
  200. package/tools/price_series.py +162 -0
  201. package/tools/price_sticks.py +114 -0
  202. package/tools/range_candidates.py +170 -0
  203. package/tools/recent_drawing_candidates.py +123 -0
  204. package/tools/rectangles.py +76 -0
  205. package/tools/regression_channels.py +87 -0
  206. package/tools/ta_functions.py +228 -0
  207. package/tools/trend_lines.py +106 -0
  208. package/tools/watchlist.py +149 -0
  209. package/view/ft-logo.jpg +0 -0
  210. package/view/kline.html +12436 -0
  211. package/view/vendor/klinecharts.min.js +7 -0
@@ -0,0 +1,3875 @@
1
+ {
2
+ "instructions": "IMPORTANT workflow policy: For ordinary K-line requests, call analyze_kline exactly once. It performs one configured-source fetch, deterministic calculations, and chart generation against one row set. FTShare is optional: when another tool or application already has OHLCV rows, call analyze_kline_rows exactly once. Never call health, fetch_candles, or calc_metrics as a preflight or follow-up; never use shell, filesystem, scripts, web probes, or another chart generator for the same request. Do not switch providers or reconstruct market rows. If the provider rejects a symbol or interval, explain that error and stop; do not probe other symbols or substitute another interval unless the user explicitly asks. Use fetch_candles only when raw OHLCV rows are explicitly requested, and use calc_metrics only for caller-supplied rows. analyze_kline_rows accepts OHLCV rows from any user-selected data source without persisting provider state. Only calculate and annotate support and resistance when the user explicitly requests it: pass metrics including support_resistance or set mark_support_resistance=true. In DeepSeek Harness, say that the interactive chart is open in the right sidebar only when chart_ready is true; otherwise explain that the chart service is unavailable. Do not create files or claim that a chart was rendered based on a script or URL. Report count, interval, latest, and indicator values exactly as returned; do not infer a different bar count from the selected timeframe. Keep support/resistance labels from the metrics, but describe whether each level is above or below the latest close instead of calling an above-price support a current support. Use data_source_status, configure_ftshare, or test_ftshare_connection only when the user explicitly asks to inspect or configure a data source. Use market_pulse for an explicit whole-market overview, and use security_intelligence for an explicit request about a mainland stock's sector linkage, capital flows, or trading events; neither tool replaces analyze_kline for chart analysis. For the chart currently on screen, use get_chart_context with context_ref from THIS conversation's current runtime context. Never guess a reference, borrow another conversation or treat an older chart_session as live UI state. The context reports browser observations, separate loaded/visible ranges and stored drawing objects, not visual proof. After analyze_kline opens a chart, use the newly injected current-view reference to read its candles; an earlier launcher reference can become inactive during mounting. An inactive/loading reference is NOT a reason to call fetch_candles or analyze_kline again. Re-read a fresh reference when available, or report that the view is not ready. Context references are read-only and are NOT chart_session tokens. For ALL current-view drawing creates/updates/deletes, including literal requests, use get_chart_context -> prepare_chart_edit -> apply_chart_edit -> get_chart_edit_status, never legacy snapshot mutations. For Fibonacci, labeled paths or reusable geometry, discover list_chart_functions and run_chart_function against fresh context, then pass edit.result_ref into that same guarded workflow. Functions calculate; candidate functions find recent rule-based geometry but never apply it. A direct request to DRAW a named tool or automatic shape authorizes the host to select the newest valid candidate and finish prepare/apply/status in the same turn, without another save or confirmation step. Check its type, dates, status and data quality; if none fits, report that rather than invent geometry. Requests to analyze or propose only remain read-only. User-specified anchors or candidate numbers take precedence. Use price_pattern_candidates for reversal shapes, nine_count for Nine Count, recent_drawing_candidates for ordinary horizontal/trend/Fibonacci/ABC, and channel_candidates/range_candidates for automatic channel/range drawings. For standard technical indicators on the current loaded chart, discover list_ta_functions, then run_ta_function and optionally read_ta_result. These TA-Lib results are analysis_only, may have null/no-finite outputs, and do not draw by themselves. Only when the user explicitly requests a price-pane drawing may a finite SMA/EMA(close, 2..200) result be selected as kind=series_line, or a finite BBANDS(close, SMA middle) result as one kind=price_band three-line group, but only when selectable_render_targets advertises that kind. Pass the result_ref as edit.ta_result_ref into prepare_chart_edit; other TA results remain read-only. Never copy long output arrays into edit parameters. prepare_chart_edit prepares one guarded candidate using the observed revision and aligned source chart_session; supply a stable request_id for retries. Preparation does NOT apply to the browser. Then apply_chart_edit queues that exact candidate to its owning view; get_chart_edit_status reads its acknowledgment. queued/delivered are NOT applied. applied confirms view STATE, not screen pixels. Unknown results must not be automatically resent or bypassed with old snapshot-only tools. Read fresh current context before the next edit. For pending status use one bounded wait_ms=3000 query; if still pending explain it, do not tightly poll. expired/needs_attention is not an acknowledgment or permission to resend. drawing_feedback reports browser chart-object API observations, not screen pixels. created means registered object with matched shape/style; time_range_overlap only checks the reported time-axis span (current in get_chart_context, historical in get_chart_edit_status), NOT price-axis visibility or screen pixels. outside_time_viewport is geometric scope only, and outside_loaded_price_envelope is a warning, NOT proof the line is hidden. The edit interaction describes only its target object; other drawing_feedback items may need separate review. Explain hidden/failed/unknown items and their reasons; never turn apply_status=applied or created into a claim of visual verification. get_chart_context feedback is current-view observation; get_chart_edit_status feedback is historical for that application. Do not silently apply snapshot-only tools to a different symbol/period/range shown in the browser. If context is stale, ambiguous or unavailable explain that state instead of re-fetching market data to guess it. The create/update/delete_horizontal_line and create/update/delete_trend_line tools are LEGACY SNAPSHOT ONLY, for explicitly requested snapshot editing, not charts on screen. get_horizontal_lines/get_trend_lines read named snapshots only. Execution tools do not choose anchors. Two-point segments require two explicit times and prices; date-only anchors use Asia/Shanghai and must match existing bars. Intraday anchors require exact bar-close ISO times with timezone or Unix seconds. Never fabricate unavailable anchors, snap dates, or substitute automatic levels. Distinguish literal drawing from analysis-assisted drawing. For literal requests, preserve the original USER-requested fields and ask about missing or ambiguous coordinates. For a direct automatic drawing request with no coordinates, use the appropriate candidate function on this current chart and apply its newest suitable result without another prompt. The host reviews the result first; a candidate on another symbol, period or source is unusable. When the user explicitly asks you to find/analyze a region or propose a drawing, YOU, the host, may derive a candidate from this conversation's actual chart candles; read fresh current context before making the proposal, not just old conversation rows. execution tools do not choose anchors or assess pattern quality. Do not ask the user to supply every coordinate merely because the execution tool needs explicit parameters. If the user asks for a proposal first, do not prepare, queue or mutate drawings before their confirmation. Give one preferred candidate with exact existing-bar dates, prices, a short data-grounded reason and a limitation; offer alternatives only when materially useful. Treat the user's confirmation as approval of THAT stated proposal plus their overrides. After confirmation read fresh context; if instrument/period/rows or relevant objects have changed, reassess and seek confirmation rather than silently moving the approved bounds. Numerical claims must agree with the candles; do not call volume monotonically declining when an intervening bar increases, or describe a subjective candidate as uniquely correct. For a chosen region, get_chart_context with region_start_time/region_end_time returns deterministic region_measurements without fetching or changing charts. body_envelope contains all open/close bodies; body_overlap is their common intersection, not the same range. Use boundary_evidence for the actual date and open/close field of each extremum. An empty intersection has no price shared by EVERY body; a point intersection shares exactly one. Never reinterpret relation=empty/exists=false as a shared zero-width point. Empty common intersection does NOT imply a gap uncovered by ANY body. The candidate difference is not an uncovered gap; union coverage is not measured. State only the measured result and its evidence, without extra coverage claims. Use volume_changes to distinguish a net decline from a monotonic decline. These measurements do NOT classify the region as a platform. Check chosen bounds with this before asking approval. If the data do not support a consolidation region, say so; do not force a platform, invent prices or imply a profitable prediction. Keep ordinary replies concise: proposal or changed object, reason/limitation, and one useful next action; omit internal IDs, revisions and protocol fields unless the user requests them or they explain a failure. For current-view parallel channels use prepare_chart_edit with kind=channel; create/update/delete_channel are LEGACY SNAPSHOT ONLY. Geometry requires two baseline anchors and a third time/price on the other boundary, within the start/end window. In literal mode ask for missing anchors; in authorized analysis mode derive and explain all three from real data under the proposal rules above. Geometry uses candle indices and linear prices, not elapsed calendar time. Before proposing a host-chosen channel, use read-only preview_chart_channel with three explicit anchors to check parallel geometry and full-region per-bar deviations. It never selects/fits anchors, draws, scores pattern quality or extends beyond the chosen dates. Horizontal body intersection is not a necessary criterion for a sloped channel. For current-view platform/range boxes use prepare_chart_edit with kind=rectangle; create/update/delete_rectangle are LEGACY SNAPSHOT ONLY. Specify start/end bar times and lower/upper prices. These draw finite rectangles, not automatic consolidation detection or flat channels. Ask for missing bounds in literal mode; an authorized host analysis may propose bounds from actual candles, but the execution tool always needs explicit values. Never swap reversed times/prices or replace a rectangle with two horizontal lines. Preserve the user's FULL requested label, without abbreviating T or U. Honor explicit colors: blue/蓝色=info, green/绿色=success, orange/橙色=warning, red/红色=danger. The token success in drawing style requests means green, not a generic success status. After each mutation call verify_chart_drawings with the original USER-requested fields, or the user-approved proposal and overrides, and the returned stable ID, NOT fields copied from the mutation result. Keep those expectations independently of the execution result. Verify exists=false after deletion; include requested name/color/anchors on create/update. If mismatched, correct only those requested fields using latest chart_session and verify again. Do not claim a name/color was applied merely because publication succeeded. A matched snapshot check is not visual verification. Perform drawing mutations sequentially, using each returned new chart_session; parallel edits of the same parent snapshot create branches, not a merged chart. Drawing tools never fetch candles; always use the latest chart_session returned in this conversation and its exact symbol. A mutation publishes a NEW immutable chart snapshot. It does not include manual browser edits. Do not re-run analyze_kline just to edit a line. Published commands are not proof of visible rendering: when render_verified is false say they were published, not visually verified. Market data may be delayed, incomplete, or unavailable; results and indicators are informational and do not constitute investment advice.",
3
+ "tools": [
4
+ {
5
+ "description": "Check runtime health only when the user explicitly asks for a health check.",
6
+ "inputSchema": {
7
+ "properties": {},
8
+ "title": "healthArguments",
9
+ "type": "object"
10
+ },
11
+ "name": "health"
12
+ },
13
+ {
14
+ "description": "Return safe data-source capability/configuration status for the UI.",
15
+ "inputSchema": {
16
+ "properties": {},
17
+ "title": "data_source_statusArguments",
18
+ "type": "object"
19
+ },
20
+ "name": "data_source_status"
21
+ },
22
+ {
23
+ "description": "Search the local symbol directory; this does not call a market provider.",
24
+ "inputSchema": {
25
+ "properties": {
26
+ "limit": {
27
+ "default": 8,
28
+ "description": "最多返回的候选数量",
29
+ "maximum": 20,
30
+ "minimum": 1,
31
+ "title": "Limit",
32
+ "type": "integer"
33
+ },
34
+ "query": {
35
+ "description": "标的代码、名称或常用简称",
36
+ "title": "Query",
37
+ "type": "string"
38
+ }
39
+ },
40
+ "required": [
41
+ "query"
42
+ ],
43
+ "title": "search_symbols_toolArguments",
44
+ "type": "object"
45
+ },
46
+ "name": "search_symbols"
47
+ },
48
+ {
49
+ "description": "Configure FTShare without returning the key; results include safe capability status.",
50
+ "inputSchema": {
51
+ "properties": {
52
+ "api_key": {
53
+ "anyOf": [
54
+ {
55
+ "type": "string"
56
+ },
57
+ {
58
+ "type": "null"
59
+ }
60
+ ],
61
+ "default": null,
62
+ "description": "FTShare API Key;留空可清除当前配置",
63
+ "title": "Api Key"
64
+ },
65
+ "persist": {
66
+ "default": true,
67
+ "description": "是否保存到本机,默认保存",
68
+ "title": "Persist",
69
+ "type": "boolean"
70
+ },
71
+ "test_connection": {
72
+ "default": true,
73
+ "description": "配置后是否发起一次最小连接测试",
74
+ "title": "Test Connection",
75
+ "type": "boolean"
76
+ }
77
+ },
78
+ "title": "configure_ftshareArguments",
79
+ "type": "object"
80
+ },
81
+ "name": "configure_ftshare"
82
+ },
83
+ {
84
+ "description": "Test the current anonymous/API-key FTShare connection without changing it.",
85
+ "inputSchema": {
86
+ "properties": {},
87
+ "title": "test_ftshare_connection_toolArguments",
88
+ "type": "object"
89
+ },
90
+ "name": "test_ftshare_connection"
91
+ },
92
+ {
93
+ "description": "Read selected market-intelligence sections; callers can load groups progressively.",
94
+ "inputSchema": {
95
+ "properties": {
96
+ "refresh": {
97
+ "default": false,
98
+ "description": "是否绕过短时缓存并重新拉取",
99
+ "title": "Refresh",
100
+ "type": "boolean"
101
+ },
102
+ "sections": {
103
+ "anyOf": [
104
+ {
105
+ "items": {
106
+ "type": "string"
107
+ },
108
+ "type": "array"
109
+ },
110
+ {
111
+ "type": "null"
112
+ }
113
+ ],
114
+ "default": null,
115
+ "description": "可选:仅加载 breadth、flows、sectors、concepts、rankings、events 中指定分组",
116
+ "title": "Sections"
117
+ }
118
+ },
119
+ "title": "market_pulseArguments",
120
+ "type": "object"
121
+ },
122
+ "name": "market_pulse"
123
+ },
124
+ {
125
+ "description": "Read a market board snapshot and available funding history.",
126
+ "inputSchema": {
127
+ "properties": {
128
+ "board_code": {
129
+ "anyOf": [
130
+ {
131
+ "type": "string"
132
+ },
133
+ {
134
+ "type": "null"
135
+ }
136
+ ],
137
+ "default": null,
138
+ "description": "市场快照返回的板块代码",
139
+ "title": "Board Code"
140
+ },
141
+ "kind": {
142
+ "default": "industry",
143
+ "description": "板块类型",
144
+ "enum": [
145
+ "industry",
146
+ "concept"
147
+ ],
148
+ "title": "Kind",
149
+ "type": "string"
150
+ },
151
+ "name": {
152
+ "description": "行业或概念板块名称",
153
+ "title": "Name",
154
+ "type": "string"
155
+ }
156
+ },
157
+ "required": [
158
+ "name"
159
+ ],
160
+ "title": "market_board_detailArguments",
161
+ "type": "object"
162
+ },
163
+ "name": "market_board_detail"
164
+ },
165
+ {
166
+ "description": "Read sector linkage, stock capital flow and trading-event context independently from charts.",
167
+ "inputSchema": {
168
+ "properties": {
169
+ "refresh": {
170
+ "default": false,
171
+ "description": "是否绕过短时缓存并重新拉取",
172
+ "title": "Refresh",
173
+ "type": "boolean"
174
+ },
175
+ "symbol": {
176
+ "description": "沪深北股票代码,例如 600519.XSHG",
177
+ "title": "Symbol",
178
+ "type": "string"
179
+ }
180
+ },
181
+ "required": [
182
+ "symbol"
183
+ ],
184
+ "title": "security_intelligenceArguments",
185
+ "type": "object"
186
+ },
187
+ "name": "security_intelligence"
188
+ },
189
+ {
190
+ "description": "Read the user's persistent dsh_kline watchlist, shared across conversations.",
191
+ "inputSchema": {
192
+ "properties": {},
193
+ "title": "get_watchlistArguments",
194
+ "type": "object"
195
+ },
196
+ "name": "get_watchlist"
197
+ },
198
+ {
199
+ "description": "Replace the user's persistent watchlist with a validated complete state.",
200
+ "inputSchema": {
201
+ "properties": {
202
+ "watchlist": {
203
+ "additionalProperties": true,
204
+ "description": "完整自选状态:groups、items、activeGroupId、sort",
205
+ "title": "Watchlist",
206
+ "type": "object"
207
+ }
208
+ },
209
+ "required": [
210
+ "watchlist"
211
+ ],
212
+ "title": "save_watchlistArguments",
213
+ "type": "object"
214
+ },
215
+ "name": "save_watchlist"
216
+ },
217
+ {
218
+ "description": "Fetch raw OHLCV rows only when the user explicitly requests raw candle data.",
219
+ "inputSchema": {
220
+ "properties": {
221
+ "adjust": {
222
+ "default": "none",
223
+ "description": "复权:none不复权 / forward前复权 / backward后复权;兼容qfq=forward、hfq=backward",
224
+ "enum": [
225
+ "none",
226
+ "forward",
227
+ "backward",
228
+ "qfq",
229
+ "hfq"
230
+ ],
231
+ "title": "Adjust",
232
+ "type": "string"
233
+ },
234
+ "interval": {
235
+ "default": "day",
236
+ "description": "K 线周期:minute / day / week / month / quarter / year",
237
+ "title": "Interval",
238
+ "type": "string"
239
+ },
240
+ "interval_value": {
241
+ "default": 1,
242
+ "description": "分钟粒度",
243
+ "maximum": 240,
244
+ "minimum": 1,
245
+ "title": "Interval Value",
246
+ "type": "integer"
247
+ },
248
+ "limit": {
249
+ "default": 220,
250
+ "description": "回看窗口",
251
+ "maximum": 4000,
252
+ "minimum": 2,
253
+ "title": "Limit",
254
+ "type": "integer"
255
+ },
256
+ "session_count": {
257
+ "anyOf": [
258
+ {
259
+ "maximum": 10,
260
+ "minimum": 1,
261
+ "type": "integer"
262
+ },
263
+ {
264
+ "type": "null"
265
+ }
266
+ ],
267
+ "default": null,
268
+ "description": "分钟 K 的交易日数量",
269
+ "title": "Session Count"
270
+ },
271
+ "symbol": {
272
+ "description": "标的代码,如 00700.HK / 600519.XSHG / NVDA.US",
273
+ "title": "Symbol",
274
+ "type": "string"
275
+ }
276
+ },
277
+ "required": [
278
+ "symbol"
279
+ ],
280
+ "title": "fetch_candles_toolArguments",
281
+ "type": "object"
282
+ },
283
+ "name": "fetch_candles"
284
+ },
285
+ {
286
+ "description": "Calculate metrics only for rows explicitly supplied by the caller.",
287
+ "inputSchema": {
288
+ "properties": {
289
+ "atr_period": {
290
+ "default": 14,
291
+ "maximum": 100,
292
+ "minimum": 2,
293
+ "title": "Atr Period",
294
+ "type": "integer"
295
+ },
296
+ "boll_period": {
297
+ "default": 20,
298
+ "maximum": 200,
299
+ "minimum": 2,
300
+ "title": "Boll Period",
301
+ "type": "integer"
302
+ },
303
+ "boll_std": {
304
+ "default": 2.0,
305
+ "maximum": 5.0,
306
+ "minimum": 0.5,
307
+ "title": "Boll Std",
308
+ "type": "number"
309
+ },
310
+ "metrics": {
311
+ "anyOf": [
312
+ {
313
+ "items": {
314
+ "type": "string"
315
+ },
316
+ "type": "array"
317
+ },
318
+ {
319
+ "type": "null"
320
+ }
321
+ ],
322
+ "default": null,
323
+ "description": "指标子集:max_drawdown, support_resistance, ma_cross, volume_breakout, bollinger, rsi, atr",
324
+ "title": "Metrics"
325
+ },
326
+ "rows": {
327
+ "description": "canonical OHLCV rows with unix-second time",
328
+ "items": {
329
+ "additionalProperties": true,
330
+ "type": "object"
331
+ },
332
+ "title": "Rows",
333
+ "type": "array"
334
+ },
335
+ "rsi_period": {
336
+ "default": 14,
337
+ "maximum": 100,
338
+ "minimum": 2,
339
+ "title": "Rsi Period",
340
+ "type": "integer"
341
+ },
342
+ "volume_ma": {
343
+ "default": 20,
344
+ "maximum": 200,
345
+ "minimum": 2,
346
+ "title": "Volume Ma",
347
+ "type": "integer"
348
+ }
349
+ },
350
+ "required": [
351
+ "rows"
352
+ ],
353
+ "title": "calc_metricsArguments",
354
+ "type": "object"
355
+ },
356
+ "name": "calc_metrics"
357
+ },
358
+ {
359
+ "description": "Analyze caller-supplied OHLCV rows and open the native chart sidebar.",
360
+ "inputSchema": {
361
+ "properties": {
362
+ "adjust": {
363
+ "default": "none",
364
+ "description": "复权:none不复权 / forward前复权 / backward后复权;兼容qfq=forward、hfq=backward;只标记调用方已有数据,不重新复权",
365
+ "enum": [
366
+ "none",
367
+ "forward",
368
+ "backward",
369
+ "qfq",
370
+ "hfq"
371
+ ],
372
+ "title": "Adjust",
373
+ "type": "string"
374
+ },
375
+ "atr_period": {
376
+ "default": 14,
377
+ "maximum": 100,
378
+ "minimum": 2,
379
+ "title": "Atr Period",
380
+ "type": "integer"
381
+ },
382
+ "boll_period": {
383
+ "default": 20,
384
+ "maximum": 200,
385
+ "minimum": 2,
386
+ "title": "Boll Period",
387
+ "type": "integer"
388
+ },
389
+ "boll_std": {
390
+ "default": 2.0,
391
+ "maximum": 5.0,
392
+ "minimum": 0.5,
393
+ "title": "Boll Std",
394
+ "type": "number"
395
+ },
396
+ "data_source": {
397
+ "anyOf": [
398
+ {
399
+ "type": "string"
400
+ },
401
+ {
402
+ "type": "null"
403
+ }
404
+ ],
405
+ "default": null,
406
+ "description": "数据源名称,不要放 API key 或其他秘密",
407
+ "title": "Data Source"
408
+ },
409
+ "data_source_url": {
410
+ "anyOf": [
411
+ {
412
+ "type": "string"
413
+ },
414
+ {
415
+ "type": "null"
416
+ }
417
+ ],
418
+ "default": null,
419
+ "description": "可选的 HTTPS 数据源说明链接",
420
+ "title": "Data Source Url"
421
+ },
422
+ "indicators": {
423
+ "anyOf": [
424
+ {
425
+ "items": {
426
+ "type": "string"
427
+ },
428
+ "type": "array"
429
+ },
430
+ {
431
+ "type": "null"
432
+ }
433
+ ],
434
+ "default": null,
435
+ "description": "ma / ema / vol / macd / kdj / boll / rsi / atr / vwap",
436
+ "title": "Indicators"
437
+ },
438
+ "interval": {
439
+ "default": "day",
440
+ "description": "K 线周期:minute / day / week / month / quarter / year",
441
+ "title": "Interval",
442
+ "type": "string"
443
+ },
444
+ "limit": {
445
+ "default": 60,
446
+ "description": "最终分析使用的最近 K 线根数",
447
+ "maximum": 4000,
448
+ "minimum": 2,
449
+ "title": "Limit",
450
+ "type": "integer"
451
+ },
452
+ "ma_periods": {
453
+ "anyOf": [
454
+ {
455
+ "items": {
456
+ "type": "integer"
457
+ },
458
+ "type": "array"
459
+ },
460
+ {
461
+ "type": "null"
462
+ }
463
+ ],
464
+ "default": null,
465
+ "description": "MA 周期,默认 [5, 10, 20, 30, 60]",
466
+ "title": "Ma Periods"
467
+ },
468
+ "mark_support_resistance": {
469
+ "default": false,
470
+ "description": "仅在用户明确要求支撑位/压力位时设为 true",
471
+ "title": "Mark Support Resistance",
472
+ "type": "boolean"
473
+ },
474
+ "metrics": {
475
+ "anyOf": [
476
+ {
477
+ "items": {
478
+ "type": "string"
479
+ },
480
+ "type": "array"
481
+ },
482
+ {
483
+ "type": "null"
484
+ }
485
+ ],
486
+ "default": null,
487
+ "description": "指标摘要子集,可选:max_drawdown, support_resistance, ma_cross, volume_breakout, bollinger, rsi, atr",
488
+ "title": "Metrics"
489
+ },
490
+ "name": {
491
+ "anyOf": [
492
+ {
493
+ "type": "string"
494
+ },
495
+ {
496
+ "type": "null"
497
+ }
498
+ ],
499
+ "default": null,
500
+ "description": "标的名称",
501
+ "title": "Name"
502
+ },
503
+ "rows": {
504
+ "description": "来自任意数据源的 OHLCV 行;time 可为 Unix 秒或毫秒",
505
+ "items": {
506
+ "additionalProperties": true,
507
+ "type": "object"
508
+ },
509
+ "title": "Rows",
510
+ "type": "array"
511
+ },
512
+ "rsi_period": {
513
+ "default": 14,
514
+ "maximum": 100,
515
+ "minimum": 2,
516
+ "title": "Rsi Period",
517
+ "type": "integer"
518
+ },
519
+ "security_workspace": {
520
+ "anyOf": [
521
+ {
522
+ "additionalProperties": true,
523
+ "type": "object"
524
+ },
525
+ {
526
+ "type": "null"
527
+ }
528
+ ],
529
+ "default": null,
530
+ "description": "可选的标准化新闻/简况数据",
531
+ "title": "Security Workspace"
532
+ },
533
+ "symbol": {
534
+ "description": "标的代码或名称",
535
+ "title": "Symbol",
536
+ "type": "string"
537
+ },
538
+ "volume_ma": {
539
+ "default": 20,
540
+ "maximum": 200,
541
+ "minimum": 2,
542
+ "title": "Volume Ma",
543
+ "type": "integer"
544
+ }
545
+ },
546
+ "required": [
547
+ "rows",
548
+ "symbol"
549
+ ],
550
+ "title": "analyze_kline_rowsArguments",
551
+ "type": "object"
552
+ },
553
+ "name": "analyze_kline_rows"
554
+ },
555
+ {
556
+ "description": "Use this single call for ordinary K-line analysis; it also opens the native chart sidebar.",
557
+ "inputSchema": {
558
+ "properties": {
559
+ "adjust": {
560
+ "default": "none",
561
+ "description": "复权:none不复权 / forward前复权 / backward后复权;兼容qfq=forward、hfq=backward",
562
+ "enum": [
563
+ "none",
564
+ "forward",
565
+ "backward",
566
+ "qfq",
567
+ "hfq"
568
+ ],
569
+ "title": "Adjust",
570
+ "type": "string"
571
+ },
572
+ "atr_period": {
573
+ "default": 14,
574
+ "maximum": 100,
575
+ "minimum": 2,
576
+ "title": "Atr Period",
577
+ "type": "integer"
578
+ },
579
+ "boll_period": {
580
+ "default": 20,
581
+ "maximum": 200,
582
+ "minimum": 2,
583
+ "title": "Boll Period",
584
+ "type": "integer"
585
+ },
586
+ "boll_std": {
587
+ "default": 2.0,
588
+ "maximum": 5.0,
589
+ "minimum": 0.5,
590
+ "title": "Boll Std",
591
+ "type": "number"
592
+ },
593
+ "indicators": {
594
+ "anyOf": [
595
+ {
596
+ "items": {
597
+ "type": "string"
598
+ },
599
+ "type": "array"
600
+ },
601
+ {
602
+ "type": "null"
603
+ }
604
+ ],
605
+ "default": null,
606
+ "description": "ma / ema / vol / macd / kdj / boll / rsi / atr / vwap",
607
+ "title": "Indicators"
608
+ },
609
+ "interval": {
610
+ "default": "day",
611
+ "description": "K 线周期:minute / day / week / month / quarter / year",
612
+ "title": "Interval",
613
+ "type": "string"
614
+ },
615
+ "interval_value": {
616
+ "default": 1,
617
+ "description": "分钟粒度;非分钟周期通常为 1",
618
+ "maximum": 240,
619
+ "minimum": 1,
620
+ "title": "Interval Value",
621
+ "type": "integer"
622
+ },
623
+ "limit": {
624
+ "default": 60,
625
+ "description": "最终分析使用的最近 K 线根数",
626
+ "maximum": 4000,
627
+ "minimum": 2,
628
+ "title": "Limit",
629
+ "type": "integer"
630
+ },
631
+ "ma_periods": {
632
+ "anyOf": [
633
+ {
634
+ "items": {
635
+ "type": "integer"
636
+ },
637
+ "type": "array"
638
+ },
639
+ {
640
+ "type": "null"
641
+ }
642
+ ],
643
+ "default": null,
644
+ "description": "MA 周期,默认 [5, 10, 20, 30, 60]",
645
+ "title": "Ma Periods"
646
+ },
647
+ "mark_support_resistance": {
648
+ "default": false,
649
+ "description": "仅在用户明确要求支撑位/压力位时设为 true;默认不标注",
650
+ "title": "Mark Support Resistance",
651
+ "type": "boolean"
652
+ },
653
+ "metrics": {
654
+ "anyOf": [
655
+ {
656
+ "items": {
657
+ "type": "string"
658
+ },
659
+ "type": "array"
660
+ },
661
+ {
662
+ "type": "null"
663
+ }
664
+ ],
665
+ "default": null,
666
+ "description": "指标摘要子集,可选:max_drawdown, support_resistance, ma_cross, volume_breakout, bollinger, rsi, atr",
667
+ "title": "Metrics"
668
+ },
669
+ "rsi_period": {
670
+ "default": 14,
671
+ "maximum": 100,
672
+ "minimum": 2,
673
+ "title": "Rsi Period",
674
+ "type": "integer"
675
+ },
676
+ "session_count": {
677
+ "anyOf": [
678
+ {
679
+ "maximum": 10,
680
+ "minimum": 1,
681
+ "type": "integer"
682
+ },
683
+ {
684
+ "type": "null"
685
+ }
686
+ ],
687
+ "default": null,
688
+ "description": "分钟 K 的最近交易日数量",
689
+ "title": "Session Count"
690
+ },
691
+ "symbol": {
692
+ "description": "标的代码,如 00700.HK / 600519.XSHG / NVDA.US",
693
+ "title": "Symbol",
694
+ "type": "string"
695
+ },
696
+ "volume_ma": {
697
+ "default": 20,
698
+ "maximum": 200,
699
+ "minimum": 2,
700
+ "title": "Volume Ma",
701
+ "type": "integer"
702
+ }
703
+ },
704
+ "required": [
705
+ "symbol"
706
+ ],
707
+ "title": "analyze_klineArguments",
708
+ "type": "object"
709
+ },
710
+ "name": "analyze_kline"
711
+ },
712
+ {
713
+ "annotations": {
714
+ "readOnlyHint": true
715
+ },
716
+ "description": "Read the current conversation's live browser observation without fetching or changing charts.\n\nRead fresh context before analysis and again before edits if the view may have changed.\nWhen the user asks to find a drawing region, the HOST may choose a candidate from actual\ncandles; the plugin does not choose/classify it. Before asking approval for that chosen\nregion, call this with paired region_start_time/region_end_time to check numeric claims.\nA proposal-first request must not prepare/apply drawings before confirmation. A direct\ndrawing request may select and apply the newest suitable candidate without another prompt. Keep ordinary\nproposals concise; avoid arbitrary universal pattern thresholds and internal IDs.\nAn inactive initial reference during mounting requires a newly injected current-view\nreference, NOT another market fetch or analyze call.\nVisible candles are actual viewport-index rows, not all loaded candles; unknown viewport\nstays unknown. Limit samples the last rows with explicit truncation. Stored object inventory\nis not proof of rendering; live_view_editable=false. No old-snapshot or global-latest fallback.\ndata_provenance reports provider metadata and browser-input vs displayed intervals, not\nvendor-native granularity. local_aggregation (e.g. day -> week) explains a normal interval\ndifference, not stale data by itself; aggregation completeness is NOT verified. Unknown\nproviders/transforms must not be guessed. This metadata is not source-snapshot alignment\nor edit authorization; guarded edits still require exact current candles and AI inventory.\nAfter local period/range/symbol changes the browser can seal and confirm its current\nsource without fetching or drawing. A pending/unconfirmed source is not editable: wait\nfor fresh context, never refetch or fall back to old snapshot tools. Source binding does\nnot approve a drawing proposal or move existing objects into a different period.\nUse time_display's deterministic +08:00 ISO/date labels when reporting dates; do not\nmentally convert Unix seconds or guess dates. Minute anchors require exact ISO times.\nOptional paired region times measure the full loaded region (max 4000 bars), independently\nof returned candle sampling. source_status is allowlisted diagnostic metadata only:\nchecking means wait for a fresh report, blocked means follow next_action; an uncertain\ndrawing outcome must be checked via get_chart_edit_status, never resent automatically.\nSource aligned is not drawing approval, pixel proof, vendor freshness or a guard bypass.\nRecheck only republishes/checks the current browser chart; it does not fetch quotes or queue drawings.\nBody envelope != common body intersection; volume net change\n!= monotonic change. Measurements do not select/classify a platform or authorize drawing.\nboundary_evidence gives an actual bar's +08:00 date/ISO, source_fields (open/close/low/high),\nprice and matched_bar_count for each extreme; ties use the first matching bar, not a unique\nor preferred drawing anchor. Cite these, not guessed dates. body_overlap's candidate lower\nis max(body lows), candidate upper is min(body highs): lower>upper is EMPTY (no shared\nprice shared by EVERY body), equality is a POINT, lower<upper is a RANGE. Never turn exists=false/relation=empty\ninto a shared point. These diagnostic candidates are not drawable bounds when empty.\nEmpty common intersection does NOT imply a gap uncovered by ANY body. The candidate\ndifference is not an uncovered gap; union coverage is not measured. Report the measured\nresult with its witnesses, not extra coverage claims. A claim about a specific bar must\nbe checked against that bar's actual open/close values, not inferred from the intersection.",
717
+ "inputSchema": {
718
+ "properties": {
719
+ "candle_scope": {
720
+ "default": "visible",
721
+ "enum": [
722
+ "visible",
723
+ "loaded",
724
+ "none"
725
+ ],
726
+ "title": "Candle Scope",
727
+ "type": "string"
728
+ },
729
+ "context_ref": {
730
+ "description": "当前对话运行时上下文提供的32字符引用;不是chart_session,不得猜测其他对话",
731
+ "title": "Context Ref",
732
+ "type": "string"
733
+ },
734
+ "limit": {
735
+ "default": 200,
736
+ "maximum": 4000,
737
+ "minimum": 1,
738
+ "title": "Limit",
739
+ "type": "integer"
740
+ },
741
+ "region_end_time": {
742
+ "anyOf": [
743
+ {
744
+ "type": "string"
745
+ },
746
+ {
747
+ "type": "null"
748
+ }
749
+ ],
750
+ "default": null,
751
+ "description": "可选:测量终点;精确时间规则同画线,不吸附、不扩充行情",
752
+ "title": "Region End Time"
753
+ },
754
+ "region_start_time": {
755
+ "anyOf": [
756
+ {
757
+ "type": "string"
758
+ },
759
+ {
760
+ "type": "null"
761
+ }
762
+ ],
763
+ "default": null,
764
+ "description": "可选:宿主选定测量区域的已有K线起点;与region_end_time同时填写",
765
+ "title": "Region Start Time"
766
+ }
767
+ },
768
+ "required": [
769
+ "context_ref"
770
+ ],
771
+ "title": "get_chart_contextArguments",
772
+ "type": "object"
773
+ },
774
+ "name": "get_chart_context"
775
+ },
776
+ {
777
+ "annotations": {
778
+ "idempotentHint": true,
779
+ "readOnlyHint": true
780
+ },
781
+ "description": "Preview a HOST-chosen three-anchor channel against fresh current browser candles, read-only.\n\nThe host selects explicit anchors from fresh actual candles under user-authorized analysis;\nthis tool never searches/fits/selects anchors or judges professional pattern quality. Use it\nbefore proposing a channel, without shell arithmetic or refetching candles. Date-only anchors\nuse UTC+08:00 on daily/larger bars; minute bars need exact timezone ISO or Unix seconds.\nGeometry is identical to channel execution: candle_index_linear_price, finite inclusive\nstart/end, no calendar-time slope or extrapolated bars. Returns upper/lower boundaries,\nraw signed wick/body distances, full-region exceedance counts and worst-bar witnesses.\nPositive high_minus_upper is above the upper boundary; negative low_minus_lower is below\nthe lower. Body variants use max/min(open, close). Counts ignore only the disclosed floating\nroundoff allowance, NOT a market tolerance; no touch count, fit score or recognition is given.\nAn empty horizontal body intersection does not disqualify a sloped channel. Containment does\nnot prove a meaningful pattern, predictive power or uniqueness. Do not add unsupported claims.\nbar_limit truncates only the returned per-bar list, never the full-region summary (max4000).\nexact_matching_ohlc_fields are exact matches only; caller-supplied prices need not be extrema.\nNo chart fetch, snapshot publication, prepare/apply, drawing or edit authorization occurs.\nA preview is arithmetic, NOT a visual preview or rendering receipt. Re-read fresh context\nafter user confirmation and preserve the independently approved anchors for guarded execution.",
782
+ "inputSchema": {
783
+ "properties": {
784
+ "bar_limit": {
785
+ "default": 200,
786
+ "description": "逐根结果只返回前N根;汇总核对完整区间,最多4000根",
787
+ "maximum": 4000,
788
+ "minimum": 1,
789
+ "title": "Bar Limit",
790
+ "type": "integer"
791
+ },
792
+ "context_ref": {
793
+ "description": "本对话运行时的当前视图引用;不是chart_session",
794
+ "title": "Context Ref",
795
+ "type": "string"
796
+ },
797
+ "end_price": {
798
+ "exclusiveMinimum": 0,
799
+ "title": "End Price",
800
+ "type": "number"
801
+ },
802
+ "end_time": {
803
+ "description": "基准线终点,必须晚于起点,不交换、不吸附",
804
+ "title": "End Time",
805
+ "type": "string"
806
+ },
807
+ "parallel_price": {
808
+ "exclusiveMinimum": 0,
809
+ "title": "Parallel Price",
810
+ "type": "number"
811
+ },
812
+ "parallel_time": {
813
+ "description": "另一边界的第三点,须在起止区间内",
814
+ "title": "Parallel Time",
815
+ "type": "string"
816
+ },
817
+ "start_price": {
818
+ "exclusiveMinimum": 0,
819
+ "title": "Start Price",
820
+ "type": "number"
821
+ },
822
+ "start_time": {
823
+ "description": "基准线起点,必须精确对应当前图已有K线",
824
+ "title": "Start Time",
825
+ "type": "string"
826
+ }
827
+ },
828
+ "required": [
829
+ "context_ref",
830
+ "start_time",
831
+ "start_price",
832
+ "end_time",
833
+ "end_price",
834
+ "parallel_time",
835
+ "parallel_price"
836
+ ],
837
+ "title": "preview_chart_channelArguments",
838
+ "type": "object"
839
+ },
840
+ "name": "preview_chart_channel"
841
+ },
842
+ {
843
+ "annotations": {
844
+ "readOnlyHint": true
845
+ },
846
+ "description": "Discover implemented deterministic chart functions, parameters, versions and limits.\n\nNo market fetch, chart mutation or arbitrary code execution. Candidate functions propose\nrule-based geometry for review; they do not draw or claim professional pattern confirmation.\nFunctions: fibonacci_retracement, parallel_channel, range_box, labeled_polyline,\npivot_candidates, recent_drawing_candidates, regression_channel, channel_candidates, range_candidates, price_pattern_candidates, nine_count, price_series_line,\nconditional_annotation, price_band, price_sticks.\npivot_candidates reports confirmed strict local extrema; regression_channel computes OLS statistics;\nchannel_candidates v3 proposes bounded three-anchor geometry from confirmed pivots. Default scope=current\nrequires a recent end anchor and checks the arithmetic extension through the latest bar; scope=historical\nis for past geometry only, with no current breakout inference. Zero candidates does not prove\na lack of recent confirmed pivots; inspect pivot_scan and rejection_counts. range_candidates proposes\nhorizontal boxes ending at the latest loaded bar, distinct from explicitly drawn range_box.\nAnalysis functions are read-only and may validly return no candidate. price_pattern_candidates\nuses closed A/HK/US daily bars for double tops/bottoms, head-and-shoulders and frozen ranges;\nnine_count records each close-vs-four-back count without retrospective deletion.\nlabeled_polyline connects 2..8 explicitly labeled anchors, not automatic Elliott wave recognition.\nprice_series_line uses current loaded OHLC or SMA(close, 2..200) and an optional price comparison.\nIt returns a bounded result_ref; null warmup/false-condition bars break the price-pane line.\nconditional_annotation selects only the latest loaded bar matching a required price condition;\nits result uses the existing guarded text, number or icon annotation kind, not a batch of marks.\nprice_band fills between two OHLC/SMA price sources in the candle pane. Its upper boundary\nmust stay strictly above the lower boundary on every eligible bar; warmup/false conditions break the band.\nprice_sticks draws independent vertical strokes between two OHLC/SMA price sources on matching bars;\nzero-length endpoints are omitted. This is not a full formula interpreter.",
847
+ "inputSchema": {
848
+ "properties": {},
849
+ "title": "list_chart_functionsArguments",
850
+ "type": "object"
851
+ },
852
+ "name": "list_chart_functions"
853
+ },
854
+ {
855
+ "annotations": {
856
+ "readOnlyHint": true
857
+ },
858
+ "description": "Page/search all 201 pinned TA-Lib functions and their input/parameter/output metadata.\n\nAnalysis only. No data fetch or chart mutation; use run_ta_function on the current chart.",
859
+ "inputSchema": {
860
+ "properties": {
861
+ "group": {
862
+ "anyOf": [
863
+ {
864
+ "type": "string"
865
+ },
866
+ {
867
+ "type": "null"
868
+ }
869
+ ],
870
+ "default": null,
871
+ "title": "Group"
872
+ },
873
+ "limit": {
874
+ "default": 25,
875
+ "maximum": 50,
876
+ "minimum": 1,
877
+ "title": "Limit",
878
+ "type": "integer"
879
+ },
880
+ "offset": {
881
+ "default": 0,
882
+ "minimum": 0,
883
+ "title": "Offset",
884
+ "type": "integer"
885
+ },
886
+ "query": {
887
+ "anyOf": [
888
+ {
889
+ "type": "string"
890
+ },
891
+ {
892
+ "type": "null"
893
+ }
894
+ ],
895
+ "default": null,
896
+ "title": "Query"
897
+ }
898
+ },
899
+ "title": "list_ta_functionsArguments",
900
+ "type": "object"
901
+ },
902
+ "name": "list_ta_functions"
903
+ },
904
+ {
905
+ "annotations": {
906
+ "readOnlyHint": true
907
+ },
908
+ "description": "Run one TA-Lib function on current loaded OHLCV; returns analysis result_ref, never draws.\n\nDiscover parameter names with list_ta_functions. No host-supplied arrays or formula code.\nprice_sources keys are the generic input names from list_ta_functions, not TA-Lib's\nlow-level inReal name. For example SMA uses {\"price\":\"close\"}; omit it for default close.\nValues may only be current open/high/low/close columns.\nMAVP uses a constant per-bar periods array; periods_constant is ignored for other functions only at 14.\nFinite SMA/EMA(close, 2..200) may advertise series_line; finite BBANDS(close, SMA middle)\nmay advertise price_band with upper/middle/lower as one object. If the user explicitly asks\nto draw one, pass result_ref as edit.ta_result_ref with the advertised kind to\nprepare_chart_edit, then apply_chart_edit and check status. Other TA results stay analysis-only.",
909
+ "inputSchema": {
910
+ "properties": {
911
+ "chart_session": {
912
+ "title": "Chart Session",
913
+ "type": "string"
914
+ },
915
+ "context_ref": {
916
+ "title": "Context Ref",
917
+ "type": "string"
918
+ },
919
+ "expected_revision": {
920
+ "exclusiveMinimum": 0,
921
+ "title": "Expected Revision",
922
+ "type": "integer"
923
+ },
924
+ "function": {
925
+ "title": "Function",
926
+ "type": "string"
927
+ },
928
+ "parameters": {
929
+ "anyOf": [
930
+ {
931
+ "additionalProperties": {
932
+ "anyOf": [
933
+ {
934
+ "type": "integer"
935
+ },
936
+ {
937
+ "type": "number"
938
+ }
939
+ ]
940
+ },
941
+ "type": "object"
942
+ },
943
+ {
944
+ "type": "null"
945
+ }
946
+ ],
947
+ "default": null,
948
+ "title": "Parameters"
949
+ },
950
+ "periods_constant": {
951
+ "default": 14,
952
+ "maximum": 4000,
953
+ "minimum": 2,
954
+ "title": "Periods Constant",
955
+ "type": "integer"
956
+ },
957
+ "price_sources": {
958
+ "anyOf": [
959
+ {
960
+ "additionalProperties": {
961
+ "enum": [
962
+ "open",
963
+ "high",
964
+ "low",
965
+ "close"
966
+ ],
967
+ "type": "string"
968
+ },
969
+ "type": "object"
970
+ },
971
+ {
972
+ "type": "null"
973
+ }
974
+ ],
975
+ "default": null,
976
+ "title": "Price Sources"
977
+ },
978
+ "symbol": {
979
+ "title": "Symbol",
980
+ "type": "string"
981
+ }
982
+ },
983
+ "required": [
984
+ "context_ref",
985
+ "expected_revision",
986
+ "chart_session",
987
+ "symbol",
988
+ "function"
989
+ ],
990
+ "title": "run_ta_functionArguments",
991
+ "type": "object"
992
+ },
993
+ "name": "run_ta_function"
994
+ },
995
+ {
996
+ "annotations": {
997
+ "readOnlyHint": true
998
+ },
999
+ "description": "Read one TA-Lib output page from a result bound to the unchanged current chart.",
1000
+ "inputSchema": {
1001
+ "properties": {
1002
+ "chart_session": {
1003
+ "title": "Chart Session",
1004
+ "type": "string"
1005
+ },
1006
+ "context_ref": {
1007
+ "title": "Context Ref",
1008
+ "type": "string"
1009
+ },
1010
+ "expected_revision": {
1011
+ "exclusiveMinimum": 0,
1012
+ "title": "Expected Revision",
1013
+ "type": "integer"
1014
+ },
1015
+ "limit": {
1016
+ "default": 200,
1017
+ "maximum": 250,
1018
+ "minimum": 1,
1019
+ "title": "Limit",
1020
+ "type": "integer"
1021
+ },
1022
+ "offset": {
1023
+ "default": 0,
1024
+ "minimum": 0,
1025
+ "title": "Offset",
1026
+ "type": "integer"
1027
+ },
1028
+ "output_name": {
1029
+ "title": "Output Name",
1030
+ "type": "string"
1031
+ },
1032
+ "result_ref": {
1033
+ "title": "Result Ref",
1034
+ "type": "string"
1035
+ },
1036
+ "symbol": {
1037
+ "title": "Symbol",
1038
+ "type": "string"
1039
+ }
1040
+ },
1041
+ "required": [
1042
+ "context_ref",
1043
+ "expected_revision",
1044
+ "chart_session",
1045
+ "symbol",
1046
+ "result_ref",
1047
+ "output_name"
1048
+ ],
1049
+ "title": "read_ta_resultArguments",
1050
+ "type": "object"
1051
+ },
1052
+ "name": "read_ta_result"
1053
+ },
1054
+ {
1055
+ "annotations": {
1056
+ "readOnlyHint": true
1057
+ },
1058
+ "description": "Calculate on explicitly aligned current loaded candles; return immutable result_ref, NOT a drawing.\n\nRead get_chart_context first. Preserve user-specified anchors/bounds. For a direct automatic\ndrawing request select the newest suitable result after checking type and data quality; ask\nwhen a literal coordinate request is incomplete. pivot_candidates,\nrecent_drawing_candidates, regression_channel, channel_candidates, range_candidates, price_pattern_candidates and nine_count return analysis-only results;\nnever pass these refs as edit.result_ref. A direct request to draw authorizes the host to\nchoose a suitable candidate; an analysis-only or proposal-first request does not. For channel,\nrange and price-pattern candidates pass edit.candidate_result_ref, candidate_number (1-based)\nand user_confirmed_candidate=true after selection. Default channel scope=current may return no candidate;\nhistorical scope must not be described as a current channel or current breakout signal.\nIf no candidate passes, report only that no anchor triple met every rule; do not infer\nthat recent pivots or real-world channel structure are absent. Inspect pivot_scan for pivots.\nNo market fetch, LLM coordinate arithmetic,\nconfirmed pattern identification, arbitrary formula/code or chart selection.\nFibonacci levels are B-r*(B-A), ratios 0..1, linear price, exact loaded-bar times.\nFor drawing functions, pass result_ref into prepare_chart_edit's edit (no duplicate anchors/bounds/ratios), then\napply_chart_edit and get_chart_edit_status. For analysis-only functions, inspect the result first;\nchannel/range/price-pattern candidates have the selected-candidate route. A nine_count\nresult_ref can create or replace one nine_count snapshot group. Recompute after data/period/adjustment changes.\nprice_series_line takes value_source={kind:open/high/low/close} or {kind:sma,period:2..200},\noptional condition={left:PriceSource,op:gt/gte/lt/lte,right:{source:PriceSource}|{constant:positive_price}}.\nNo host-provided price arrays or executable formulas. Zero matched bars are not drawable.\nconditional_annotation requires annotation_kind, anchor_source and condition, plus exactly one\nmatching annotation_text / annotation_value / annotation_icon. It chooses the latest matching\nloaded bar and returns one guarded annotation result_ref; no match means no drawing.\nprice_band requires upper_source and lower_source, with optional condition. Crossing or equal\nboundaries are rejected; no matched bars are not drawable. Full arrays remain plugin-side.\nprice_sticks requires start_source and end_source, with optional condition. Each matched bar has\none independent stroke; equal endpoints, warmup and false conditions do not draw a stroke.\nStyle edits reuse the existing object ID; calculation alone never means drawn/applied.\nlabeled_polyline creates a group from parameters.points (unique labels, increasing times).\nTo move one labeled point, skip recalculation and use prepare_chart_edit with the current\nobject_id, point_label and point_time/point_price. Do NOT copy/rewrite all points or invent anchors.",
1059
+ "inputSchema": {
1060
+ "$defs": {
1061
+ "ChartFunctionParameters": {
1062
+ "additionalProperties": false,
1063
+ "properties": {
1064
+ "anchor_source": {
1065
+ "anyOf": [
1066
+ {
1067
+ "$ref": "#/$defs/PriceSource"
1068
+ },
1069
+ {
1070
+ "type": "null"
1071
+ }
1072
+ ],
1073
+ "default": null,
1074
+ "description": "条件标注所用价格锚点,取最新一根满足条件的已加载K线"
1075
+ },
1076
+ "anchor_times": {
1077
+ "anyOf": [
1078
+ {
1079
+ "items": {
1080
+ "type": "integer"
1081
+ },
1082
+ "maxItems": 5,
1083
+ "minItems": 3,
1084
+ "type": "array"
1085
+ },
1086
+ {
1087
+ "type": "null"
1088
+ }
1089
+ ],
1090
+ "default": null,
1091
+ "description": "用户按时间顺序指定的形态锚点,仍须通过标准规则验证",
1092
+ "title": "Anchor Times"
1093
+ },
1094
+ "annotation_icon": {
1095
+ "anyOf": [
1096
+ {
1097
+ "enum": [
1098
+ "arrow_up",
1099
+ "arrow_down",
1100
+ "diamond"
1101
+ ],
1102
+ "type": "string"
1103
+ },
1104
+ {
1105
+ "type": "null"
1106
+ }
1107
+ ],
1108
+ "default": null,
1109
+ "title": "Annotation Icon"
1110
+ },
1111
+ "annotation_kind": {
1112
+ "anyOf": [
1113
+ {
1114
+ "enum": [
1115
+ "text_annotation",
1116
+ "number_annotation",
1117
+ "icon_annotation"
1118
+ ],
1119
+ "type": "string"
1120
+ },
1121
+ {
1122
+ "type": "null"
1123
+ }
1124
+ ],
1125
+ "default": null,
1126
+ "title": "Annotation Kind"
1127
+ },
1128
+ "annotation_text": {
1129
+ "anyOf": [
1130
+ {
1131
+ "maxLength": 120,
1132
+ "minLength": 1,
1133
+ "type": "string"
1134
+ },
1135
+ {
1136
+ "type": "null"
1137
+ }
1138
+ ],
1139
+ "default": null,
1140
+ "title": "Annotation Text"
1141
+ },
1142
+ "annotation_value": {
1143
+ "anyOf": [
1144
+ {
1145
+ "type": "number"
1146
+ },
1147
+ {
1148
+ "type": "null"
1149
+ }
1150
+ ],
1151
+ "default": null,
1152
+ "title": "Annotation Value"
1153
+ },
1154
+ "closed_daily_only": {
1155
+ "anyOf": [
1156
+ {
1157
+ "type": "boolean"
1158
+ },
1159
+ {
1160
+ "type": "null"
1161
+ }
1162
+ ],
1163
+ "default": null,
1164
+ "description": "只使用可确认收盘的 A/港/美股单日线",
1165
+ "title": "Closed Daily Only"
1166
+ },
1167
+ "condition": {
1168
+ "anyOf": [
1169
+ {
1170
+ "$ref": "#/$defs/PriceCondition"
1171
+ },
1172
+ {
1173
+ "type": "null"
1174
+ }
1175
+ ],
1176
+ "default": null,
1177
+ "description": "可选价格条件;不接受宿主传入行情数组或代码"
1178
+ },
1179
+ "direction": {
1180
+ "anyOf": [
1181
+ {
1182
+ "enum": [
1183
+ "ascending",
1184
+ "descending",
1185
+ "both"
1186
+ ],
1187
+ "type": "string"
1188
+ },
1189
+ {
1190
+ "type": "null"
1191
+ }
1192
+ ],
1193
+ "default": null,
1194
+ "description": "通道候选方向;默认both",
1195
+ "title": "Direction"
1196
+ },
1197
+ "display_bars": {
1198
+ "anyOf": [
1199
+ {
1200
+ "maximum": 240,
1201
+ "minimum": 30,
1202
+ "type": "integer"
1203
+ },
1204
+ {
1205
+ "type": "null"
1206
+ }
1207
+ ],
1208
+ "default": null,
1209
+ "title": "Display Bars"
1210
+ },
1211
+ "drawing_type": {
1212
+ "anyOf": [
1213
+ {
1214
+ "enum": [
1215
+ "horizontal",
1216
+ "trend",
1217
+ "fibonacci",
1218
+ "abc"
1219
+ ],
1220
+ "type": "string"
1221
+ },
1222
+ {
1223
+ "type": "null"
1224
+ }
1225
+ ],
1226
+ "default": null,
1227
+ "title": "Drawing Type"
1228
+ },
1229
+ "end_price": {
1230
+ "anyOf": [
1231
+ {
1232
+ "exclusiveMinimum": 0,
1233
+ "type": "number"
1234
+ },
1235
+ {
1236
+ "type": "null"
1237
+ }
1238
+ ],
1239
+ "default": null,
1240
+ "title": "End Price"
1241
+ },
1242
+ "end_source": {
1243
+ "anyOf": [
1244
+ {
1245
+ "$ref": "#/$defs/PriceSource"
1246
+ },
1247
+ {
1248
+ "type": "null"
1249
+ }
1250
+ ],
1251
+ "default": null,
1252
+ "description": "逐K线柱线终点价格来源"
1253
+ },
1254
+ "end_time": {
1255
+ "anyOf": [
1256
+ {
1257
+ "type": "string"
1258
+ },
1259
+ {
1260
+ "type": "null"
1261
+ }
1262
+ ],
1263
+ "default": null,
1264
+ "title": "End Time"
1265
+ },
1266
+ "left_bars": {
1267
+ "anyOf": [
1268
+ {
1269
+ "maximum": 20,
1270
+ "minimum": 1,
1271
+ "type": "integer"
1272
+ },
1273
+ {
1274
+ "type": "null"
1275
+ }
1276
+ ],
1277
+ "default": null,
1278
+ "description": "左侧比较K线数;默认2",
1279
+ "title": "Left Bars"
1280
+ },
1281
+ "limit": {
1282
+ "anyOf": [
1283
+ {
1284
+ "maximum": 50,
1285
+ "minimum": 1,
1286
+ "type": "integer"
1287
+ },
1288
+ {
1289
+ "type": "null"
1290
+ }
1291
+ ],
1292
+ "default": null,
1293
+ "description": "最多返回最新候选数;默认20",
1294
+ "title": "Limit"
1295
+ },
1296
+ "lookback_bars": {
1297
+ "anyOf": [
1298
+ {
1299
+ "maximum": 300,
1300
+ "minimum": 30,
1301
+ "type": "integer"
1302
+ },
1303
+ {
1304
+ "type": "null"
1305
+ }
1306
+ ],
1307
+ "default": null,
1308
+ "description": "最近已加载K线根数;默认120",
1309
+ "title": "Lookback Bars"
1310
+ },
1311
+ "lower_price": {
1312
+ "anyOf": [
1313
+ {
1314
+ "exclusiveMinimum": 0,
1315
+ "type": "number"
1316
+ },
1317
+ {
1318
+ "type": "null"
1319
+ }
1320
+ ],
1321
+ "default": null,
1322
+ "title": "Lower Price"
1323
+ },
1324
+ "lower_source": {
1325
+ "anyOf": [
1326
+ {
1327
+ "$ref": "#/$defs/PriceSource"
1328
+ },
1329
+ {
1330
+ "type": "null"
1331
+ }
1332
+ ],
1333
+ "default": null,
1334
+ "description": "带状填充下边界价格来源"
1335
+ },
1336
+ "max_candidates": {
1337
+ "anyOf": [
1338
+ {
1339
+ "maximum": 5,
1340
+ "minimum": 1,
1341
+ "type": "integer"
1342
+ },
1343
+ {
1344
+ "type": "null"
1345
+ }
1346
+ ],
1347
+ "default": null,
1348
+ "description": "最多返回候选数;默认3",
1349
+ "title": "Max Candidates"
1350
+ },
1351
+ "min_span_bars": {
1352
+ "anyOf": [
1353
+ {
1354
+ "maximum": 100,
1355
+ "minimum": 10,
1356
+ "type": "integer"
1357
+ },
1358
+ {
1359
+ "type": "null"
1360
+ }
1361
+ ],
1362
+ "default": null,
1363
+ "description": "两基准锚点最小间隔;默认12",
1364
+ "title": "Min Span Bars"
1365
+ },
1366
+ "mode": {
1367
+ "anyOf": [
1368
+ {
1369
+ "enum": [
1370
+ "high",
1371
+ "low",
1372
+ "both"
1373
+ ],
1374
+ "type": "string"
1375
+ },
1376
+ {
1377
+ "type": "null"
1378
+ }
1379
+ ],
1380
+ "default": null,
1381
+ "description": "返回局部高点、低点或两者;默认both",
1382
+ "title": "Mode"
1383
+ },
1384
+ "multiplier": {
1385
+ "anyOf": [
1386
+ {
1387
+ "maximum": 5,
1388
+ "minimum": 0.5,
1389
+ "type": "number"
1390
+ },
1391
+ {
1392
+ "type": "null"
1393
+ }
1394
+ ],
1395
+ "default": null,
1396
+ "description": "回归上下轨距离倍数;默认2,乘以回归残差总体RMS",
1397
+ "title": "Multiplier"
1398
+ },
1399
+ "parallel_price": {
1400
+ "anyOf": [
1401
+ {
1402
+ "exclusiveMinimum": 0,
1403
+ "type": "number"
1404
+ },
1405
+ {
1406
+ "type": "null"
1407
+ }
1408
+ ],
1409
+ "default": null,
1410
+ "title": "Parallel Price"
1411
+ },
1412
+ "parallel_time": {
1413
+ "anyOf": [
1414
+ {
1415
+ "type": "string"
1416
+ },
1417
+ {
1418
+ "type": "null"
1419
+ }
1420
+ ],
1421
+ "default": null,
1422
+ "title": "Parallel Time"
1423
+ },
1424
+ "pattern_types": {
1425
+ "anyOf": [
1426
+ {
1427
+ "items": {
1428
+ "enum": [
1429
+ "double_top",
1430
+ "double_bottom",
1431
+ "head_shoulders_top",
1432
+ "head_shoulders_bottom",
1433
+ "platform"
1434
+ ],
1435
+ "type": "string"
1436
+ },
1437
+ "maxItems": 5,
1438
+ "minItems": 1,
1439
+ "type": "array"
1440
+ },
1441
+ {
1442
+ "type": "null"
1443
+ }
1444
+ ],
1445
+ "default": null,
1446
+ "title": "Pattern Types"
1447
+ },
1448
+ "points": {
1449
+ "anyOf": [
1450
+ {
1451
+ "items": {
1452
+ "$ref": "#/$defs/LabeledPoint"
1453
+ },
1454
+ "maxItems": 8,
1455
+ "minItems": 2,
1456
+ "type": "array"
1457
+ },
1458
+ {
1459
+ "type": "null"
1460
+ }
1461
+ ],
1462
+ "default": null,
1463
+ "description": "时间递增、组内标签唯一的2至8个明确锚点;不是自动识浪",
1464
+ "title": "Points"
1465
+ },
1466
+ "price_scale": {
1467
+ "const": "linear",
1468
+ "default": "linear",
1469
+ "title": "Price Scale",
1470
+ "type": "string"
1471
+ },
1472
+ "ratios": {
1473
+ "anyOf": [
1474
+ {
1475
+ "items": {
1476
+ "maximum": 1,
1477
+ "minimum": 0,
1478
+ "type": "number"
1479
+ },
1480
+ "maxItems": 16,
1481
+ "minItems": 1,
1482
+ "type": "array"
1483
+ },
1484
+ {
1485
+ "type": "null"
1486
+ }
1487
+ ],
1488
+ "default": null,
1489
+ "title": "Ratios"
1490
+ },
1491
+ "right_bars": {
1492
+ "anyOf": [
1493
+ {
1494
+ "maximum": 20,
1495
+ "minimum": 1,
1496
+ "type": "integer"
1497
+ },
1498
+ {
1499
+ "type": "null"
1500
+ }
1501
+ ],
1502
+ "default": null,
1503
+ "description": "右侧确认K线数;默认2",
1504
+ "title": "Right Bars"
1505
+ },
1506
+ "scope": {
1507
+ "anyOf": [
1508
+ {
1509
+ "enum": [
1510
+ "current",
1511
+ "historical"
1512
+ ],
1513
+ "type": "string"
1514
+ },
1515
+ {
1516
+ "type": "null"
1517
+ }
1518
+ ],
1519
+ "default": null,
1520
+ "description": "通道候选范围;默认current,仅历史回看时选historical",
1521
+ "title": "Scope"
1522
+ },
1523
+ "start_price": {
1524
+ "anyOf": [
1525
+ {
1526
+ "exclusiveMinimum": 0,
1527
+ "type": "number"
1528
+ },
1529
+ {
1530
+ "type": "null"
1531
+ }
1532
+ ],
1533
+ "default": null,
1534
+ "title": "Start Price"
1535
+ },
1536
+ "start_source": {
1537
+ "anyOf": [
1538
+ {
1539
+ "$ref": "#/$defs/PriceSource"
1540
+ },
1541
+ {
1542
+ "type": "null"
1543
+ }
1544
+ ],
1545
+ "default": null,
1546
+ "description": "逐K线柱线起点价格来源"
1547
+ },
1548
+ "start_time": {
1549
+ "anyOf": [
1550
+ {
1551
+ "type": "string"
1552
+ },
1553
+ {
1554
+ "type": "null"
1555
+ }
1556
+ ],
1557
+ "default": null,
1558
+ "title": "Start Time"
1559
+ },
1560
+ "upper_price": {
1561
+ "anyOf": [
1562
+ {
1563
+ "exclusiveMinimum": 0,
1564
+ "type": "number"
1565
+ },
1566
+ {
1567
+ "type": "null"
1568
+ }
1569
+ ],
1570
+ "default": null,
1571
+ "title": "Upper Price"
1572
+ },
1573
+ "upper_source": {
1574
+ "anyOf": [
1575
+ {
1576
+ "$ref": "#/$defs/PriceSource"
1577
+ },
1578
+ {
1579
+ "type": "null"
1580
+ }
1581
+ ],
1582
+ "default": null,
1583
+ "description": "带状填充上边界价格来源"
1584
+ },
1585
+ "value_source": {
1586
+ "anyOf": [
1587
+ {
1588
+ "$ref": "#/$defs/PriceSource"
1589
+ },
1590
+ {
1591
+ "type": "null"
1592
+ }
1593
+ ],
1594
+ "default": null,
1595
+ "description": "序列线取值:OHLC、SMA 或 EMA(close, 2至200根)"
1596
+ },
1597
+ "window_sizes": {
1598
+ "anyOf": [
1599
+ {
1600
+ "items": {
1601
+ "maximum": 120,
1602
+ "minimum": 16,
1603
+ "type": "integer"
1604
+ },
1605
+ "maxItems": 8,
1606
+ "minItems": 1,
1607
+ "type": "array"
1608
+ },
1609
+ {
1610
+ "type": "null"
1611
+ }
1612
+ ],
1613
+ "default": null,
1614
+ "description": "平台候选窗口根数;默认20、30、40、60;不得重复",
1615
+ "title": "Window Sizes"
1616
+ }
1617
+ },
1618
+ "title": "ChartFunctionParameters",
1619
+ "type": "object"
1620
+ },
1621
+ "LabeledPoint": {
1622
+ "additionalProperties": false,
1623
+ "properties": {
1624
+ "label": {
1625
+ "description": "点名,组内唯一,例如 A、B、C 或 1、2;不是自动识浪结果",
1626
+ "maxLength": 16,
1627
+ "minLength": 1,
1628
+ "title": "Label",
1629
+ "type": "string"
1630
+ },
1631
+ "price": {
1632
+ "exclusiveMinimum": 0,
1633
+ "title": "Price",
1634
+ "type": "number"
1635
+ },
1636
+ "time": {
1637
+ "description": "已加载 K 线的日期、带时区 ISO 或 Unix 秒字符串",
1638
+ "minLength": 1,
1639
+ "title": "Time",
1640
+ "type": "string"
1641
+ }
1642
+ },
1643
+ "required": [
1644
+ "label",
1645
+ "time",
1646
+ "price"
1647
+ ],
1648
+ "title": "LabeledPoint",
1649
+ "type": "object"
1650
+ },
1651
+ "PriceCondition": {
1652
+ "additionalProperties": false,
1653
+ "properties": {
1654
+ "left": {
1655
+ "$ref": "#/$defs/PriceSource"
1656
+ },
1657
+ "op": {
1658
+ "enum": [
1659
+ "gt",
1660
+ "gte",
1661
+ "lt",
1662
+ "lte"
1663
+ ],
1664
+ "title": "Op",
1665
+ "type": "string"
1666
+ },
1667
+ "right": {
1668
+ "$ref": "#/$defs/PriceOperand"
1669
+ }
1670
+ },
1671
+ "required": [
1672
+ "left",
1673
+ "op",
1674
+ "right"
1675
+ ],
1676
+ "title": "PriceCondition",
1677
+ "type": "object"
1678
+ },
1679
+ "PriceOperand": {
1680
+ "additionalProperties": false,
1681
+ "properties": {
1682
+ "constant": {
1683
+ "anyOf": [
1684
+ {
1685
+ "exclusiveMinimum": 0,
1686
+ "type": "number"
1687
+ },
1688
+ {
1689
+ "type": "null"
1690
+ }
1691
+ ],
1692
+ "default": null,
1693
+ "title": "Constant"
1694
+ },
1695
+ "source": {
1696
+ "anyOf": [
1697
+ {
1698
+ "$ref": "#/$defs/PriceSource"
1699
+ },
1700
+ {
1701
+ "type": "null"
1702
+ }
1703
+ ],
1704
+ "default": null
1705
+ }
1706
+ },
1707
+ "title": "PriceOperand",
1708
+ "type": "object"
1709
+ },
1710
+ "PriceSource": {
1711
+ "additionalProperties": false,
1712
+ "properties": {
1713
+ "kind": {
1714
+ "enum": [
1715
+ "open",
1716
+ "high",
1717
+ "low",
1718
+ "close",
1719
+ "sma",
1720
+ "ema"
1721
+ ],
1722
+ "title": "Kind",
1723
+ "type": "string"
1724
+ },
1725
+ "period": {
1726
+ "anyOf": [
1727
+ {
1728
+ "maximum": 200,
1729
+ "minimum": 2,
1730
+ "type": "integer"
1731
+ },
1732
+ {
1733
+ "type": "null"
1734
+ }
1735
+ ],
1736
+ "default": null,
1737
+ "title": "Period"
1738
+ }
1739
+ },
1740
+ "required": [
1741
+ "kind"
1742
+ ],
1743
+ "title": "PriceSource",
1744
+ "type": "object"
1745
+ }
1746
+ },
1747
+ "properties": {
1748
+ "chart_session": {
1749
+ "title": "Chart Session",
1750
+ "type": "string"
1751
+ },
1752
+ "context_ref": {
1753
+ "title": "Context Ref",
1754
+ "type": "string"
1755
+ },
1756
+ "expected_revision": {
1757
+ "exclusiveMinimum": 0,
1758
+ "title": "Expected Revision",
1759
+ "type": "integer"
1760
+ },
1761
+ "function": {
1762
+ "enum": [
1763
+ "fibonacci_retracement",
1764
+ "parallel_channel",
1765
+ "range_box",
1766
+ "labeled_polyline",
1767
+ "pivot_candidates",
1768
+ "recent_drawing_candidates",
1769
+ "regression_channel",
1770
+ "channel_candidates",
1771
+ "range_candidates",
1772
+ "price_pattern_candidates",
1773
+ "nine_count",
1774
+ "price_series_line",
1775
+ "conditional_annotation",
1776
+ "price_band",
1777
+ "price_sticks"
1778
+ ],
1779
+ "title": "Function",
1780
+ "type": "string"
1781
+ },
1782
+ "parameters": {
1783
+ "$ref": "#/$defs/ChartFunctionParameters"
1784
+ },
1785
+ "symbol": {
1786
+ "title": "Symbol",
1787
+ "type": "string"
1788
+ }
1789
+ },
1790
+ "required": [
1791
+ "context_ref",
1792
+ "expected_revision",
1793
+ "chart_session",
1794
+ "symbol",
1795
+ "function",
1796
+ "parameters"
1797
+ ],
1798
+ "title": "run_chart_functionArguments",
1799
+ "type": "object"
1800
+ },
1801
+ "name": "run_chart_function"
1802
+ },
1803
+ {
1804
+ "description": "DEFAULT entry for ALL browser-chart drawing creates/updates/deletes, including Fibonacci and labeled paths.\n\nRead get_chart_context first, then prepare here, apply_chart_edit, get_chart_edit_status.\nIncludes literal requests; legacy create/update/delete_* tools edit snapshots, NOT the current view.\nPrepare, NOT APPLY, one current-view drawing candidate with revision/alignment guards.\n\nFor proposal-first requests, call only AFTER the user approves the host's stated candidate.\nFor direct drawing requests, select the newest suitable result and continue without another prompt;\nread fresh current context first, and preserve independently saved approved coordinates\nand user overrides. If relevant state changed, reassess before preparing. The host reasons,\nthe executor does not choose points or validate pattern quality.\nAccept edit.result_ref from run_chart_function instead of direct anchors/bounds/ratios;\nname/color and applicable display switches may accompany a result reference.\nFor selected channel/range/price-pattern candidates use edit.candidate_result_ref, candidate_number\n(1-based) and user_confirmed_candidate=true with action=create or update; do not copy candidate coordinates.\nAn unconfirmed or stale candidate remains analysis only and cannot create a drawing.\nFor series_line, create or change source/condition using the price_series_line result_ref;\nstyle-only updates and delete use the stable object_id. Calculation and indicator registration\ndo not prove canvas pixels visible.\nA finite SMA/EMA(close, 2..200) result may use edit.ta_result_ref for series_line; a finite\nBBANDS(close, SMA middle) result may use it for one price_band containing upper/middle/lower.\nBoth require an explicit drawing request and selectable_render_targets for the chosen kind.\nDo not pass other TA outputs, manually copy series values or conflate these AI objects with\nthe built-in indicator toggles.\nFor conditional_annotation, create or recompute an existing text/number/icon annotation using\nits result_ref with matching edit.kind; style-only edits and deletion use object_id.\nFor price_band, use its result_ref with edit.kind=price_band to create/recompute one bounded\nprice-pane object; style-only updates and deletion use its stable object_id.\nFor price_sticks, use its result_ref with edit.kind=price_sticks; its independent strokes share\none stable object_id. Style-only updates and deletion do not recompute the price series.\nFor Fibonacci geometry use the function result; style-only edits/delete need no recalculation.\nFor labeled_polyline creation use run_chart_function and edit.result_ref. To move one point,\npass current object_id + point_label + point_time/point_price. A new current-chart\nlabeled_polyline result_ref may replace the whole group under the same object_id;\ndirect copied point arrays remain disallowed for updates.\nPoint labels are group-local; ambiguous group names require clarification. ABC/1..5 labels\nare user/host-specified annotations, not algorithmically recognized or validated waves.\nFor explicit point labels, text_annotation uses anchor_time + anchor_price + annotation_text;\nnumber_annotation uses anchor_time + anchor_price + annotation_value. Both update/delete by object_id\nand display literal user-provided content; the plugin does not calculate the value or select anchors.\nicon_annotation uses anchor_time + anchor_price + annotation_icon (arrow_up, arrow_down or diamond),\nand follows the same guarded create/update/delete flow.\nReuses deterministic AI drawing families. Reject stale/ambiguous/inactive contexts,\nunaligned snapshots, manual objects and parallel edits from a consumed revision.\nA replay returns the same candidate, never publishes another. Unknown publication outcomes\nstop retries. No fetching or automatic chart selection. Use apply_chart_edit explicitly next.",
1805
+ "inputSchema": {
1806
+ "$defs": {
1807
+ "ChartEdit": {
1808
+ "additionalProperties": false,
1809
+ "properties": {
1810
+ "action": {
1811
+ "enum": [
1812
+ "create",
1813
+ "update",
1814
+ "delete"
1815
+ ],
1816
+ "title": "Action",
1817
+ "type": "string"
1818
+ },
1819
+ "anchor_price": {
1820
+ "anyOf": [
1821
+ {
1822
+ "exclusiveMinimum": 0,
1823
+ "type": "number"
1824
+ },
1825
+ {
1826
+ "type": "null"
1827
+ }
1828
+ ],
1829
+ "default": null,
1830
+ "title": "Anchor Price"
1831
+ },
1832
+ "anchor_time": {
1833
+ "anyOf": [
1834
+ {
1835
+ "type": "string"
1836
+ },
1837
+ {
1838
+ "type": "null"
1839
+ }
1840
+ ],
1841
+ "default": null,
1842
+ "description": "标注锚定的已加载K线日期/时间",
1843
+ "title": "Anchor Time"
1844
+ },
1845
+ "annotation_icon": {
1846
+ "anyOf": [
1847
+ {
1848
+ "enum": [
1849
+ "arrow_up",
1850
+ "arrow_down",
1851
+ "diamond"
1852
+ ],
1853
+ "type": "string"
1854
+ },
1855
+ {
1856
+ "type": "null"
1857
+ }
1858
+ ],
1859
+ "default": null,
1860
+ "description": "图标标注:向上箭头、向下箭头或菱形",
1861
+ "title": "Annotation Icon"
1862
+ },
1863
+ "annotation_text": {
1864
+ "anyOf": [
1865
+ {
1866
+ "maxLength": 120,
1867
+ "type": "string"
1868
+ },
1869
+ {
1870
+ "type": "null"
1871
+ }
1872
+ ],
1873
+ "default": null,
1874
+ "description": "文字标注内容",
1875
+ "title": "Annotation Text"
1876
+ },
1877
+ "annotation_value": {
1878
+ "anyOf": [
1879
+ {
1880
+ "type": "number"
1881
+ },
1882
+ {
1883
+ "type": "null"
1884
+ }
1885
+ ],
1886
+ "default": null,
1887
+ "description": "数值标注内容,可为负数或零",
1888
+ "title": "Annotation Value"
1889
+ },
1890
+ "candidate_number": {
1891
+ "anyOf": [
1892
+ {
1893
+ "maximum": 5,
1894
+ "minimum": 1,
1895
+ "type": "integer"
1896
+ },
1897
+ {
1898
+ "type": "null"
1899
+ }
1900
+ ],
1901
+ "default": null,
1902
+ "description": "用户指定或宿主从最新合格结果中选择的候选序号,从1开始",
1903
+ "title": "Candidate Number"
1904
+ },
1905
+ "candidate_result_ref": {
1906
+ "anyOf": [
1907
+ {
1908
+ "pattern": "^[a-f0-9]{64}$",
1909
+ "type": "string"
1910
+ },
1911
+ {
1912
+ "type": "null"
1913
+ }
1914
+ ],
1915
+ "default": null,
1916
+ "description": "当前图自动候选的只读引用;用户直接要求自动绘图时可选择第一项",
1917
+ "title": "Candidate Result Ref"
1918
+ },
1919
+ "color": {
1920
+ "anyOf": [
1921
+ {
1922
+ "enum": [
1923
+ "info",
1924
+ "success",
1925
+ "warning",
1926
+ "danger",
1927
+ "blue",
1928
+ "green",
1929
+ "orange",
1930
+ "red",
1931
+ "蓝色",
1932
+ "绿色",
1933
+ "橙色",
1934
+ "红色"
1935
+ ],
1936
+ "type": "string"
1937
+ },
1938
+ {
1939
+ "type": "null"
1940
+ }
1941
+ ],
1942
+ "default": null,
1943
+ "title": "Color"
1944
+ },
1945
+ "end_price": {
1946
+ "anyOf": [
1947
+ {
1948
+ "exclusiveMinimum": 0,
1949
+ "type": "number"
1950
+ },
1951
+ {
1952
+ "type": "null"
1953
+ }
1954
+ ],
1955
+ "default": null,
1956
+ "title": "End Price"
1957
+ },
1958
+ "end_time": {
1959
+ "anyOf": [
1960
+ {
1961
+ "type": "string"
1962
+ },
1963
+ {
1964
+ "type": "null"
1965
+ }
1966
+ ],
1967
+ "default": null,
1968
+ "title": "End Time"
1969
+ },
1970
+ "kind": {
1971
+ "enum": [
1972
+ "horizontal_line",
1973
+ "trend_line",
1974
+ "channel",
1975
+ "rectangle",
1976
+ "fibonacci_retracement",
1977
+ "labeled_polyline",
1978
+ "text_annotation",
1979
+ "number_annotation",
1980
+ "icon_annotation",
1981
+ "series_line",
1982
+ "price_band",
1983
+ "price_sticks",
1984
+ "price_pattern",
1985
+ "nine_count",
1986
+ "all_drawings"
1987
+ ],
1988
+ "title": "Kind",
1989
+ "type": "string"
1990
+ },
1991
+ "lower_price": {
1992
+ "anyOf": [
1993
+ {
1994
+ "exclusiveMinimum": 0,
1995
+ "type": "number"
1996
+ },
1997
+ {
1998
+ "type": "null"
1999
+ }
2000
+ ],
2001
+ "default": null,
2002
+ "title": "Lower Price"
2003
+ },
2004
+ "name": {
2005
+ "anyOf": [
2006
+ {
2007
+ "maxLength": 48,
2008
+ "type": "string"
2009
+ },
2010
+ {
2011
+ "type": "null"
2012
+ }
2013
+ ],
2014
+ "default": null,
2015
+ "title": "Name"
2016
+ },
2017
+ "object_id": {
2018
+ "anyOf": [
2019
+ {
2020
+ "maxLength": 128,
2021
+ "minLength": 1,
2022
+ "type": "string"
2023
+ },
2024
+ {
2025
+ "type": "null"
2026
+ }
2027
+ ],
2028
+ "default": null,
2029
+ "description": "修改/删除使用当前观察中的 AI 稳定 ID;创建不填",
2030
+ "title": "Object Id"
2031
+ },
2032
+ "parallel_price": {
2033
+ "anyOf": [
2034
+ {
2035
+ "exclusiveMinimum": 0,
2036
+ "type": "number"
2037
+ },
2038
+ {
2039
+ "type": "null"
2040
+ }
2041
+ ],
2042
+ "default": null,
2043
+ "title": "Parallel Price"
2044
+ },
2045
+ "parallel_time": {
2046
+ "anyOf": [
2047
+ {
2048
+ "type": "string"
2049
+ },
2050
+ {
2051
+ "type": "null"
2052
+ }
2053
+ ],
2054
+ "default": null,
2055
+ "title": "Parallel Time"
2056
+ },
2057
+ "point_label": {
2058
+ "anyOf": [
2059
+ {
2060
+ "maxLength": 16,
2061
+ "minLength": 1,
2062
+ "type": "string"
2063
+ },
2064
+ {
2065
+ "type": "null"
2066
+ }
2067
+ ],
2068
+ "default": null,
2069
+ "description": "更新该对象内的唯一点名,不按索引猜点",
2070
+ "title": "Point Label"
2071
+ },
2072
+ "point_price": {
2073
+ "anyOf": [
2074
+ {
2075
+ "exclusiveMinimum": 0,
2076
+ "type": "number"
2077
+ },
2078
+ {
2079
+ "type": "null"
2080
+ }
2081
+ ],
2082
+ "default": null,
2083
+ "title": "Point Price"
2084
+ },
2085
+ "point_time": {
2086
+ "anyOf": [
2087
+ {
2088
+ "type": "string"
2089
+ },
2090
+ {
2091
+ "type": "null"
2092
+ }
2093
+ ],
2094
+ "default": null,
2095
+ "title": "Point Time"
2096
+ },
2097
+ "points": {
2098
+ "anyOf": [
2099
+ {
2100
+ "items": {
2101
+ "$ref": "#/$defs/LabeledPoint"
2102
+ },
2103
+ "maxItems": 8,
2104
+ "minItems": 2,
2105
+ "type": "array"
2106
+ },
2107
+ {
2108
+ "type": "null"
2109
+ }
2110
+ ],
2111
+ "default": null,
2112
+ "description": "仅用于创建标注折线,续改用单点字段",
2113
+ "title": "Points"
2114
+ },
2115
+ "price": {
2116
+ "anyOf": [
2117
+ {
2118
+ "exclusiveMinimum": 0,
2119
+ "type": "number"
2120
+ },
2121
+ {
2122
+ "type": "null"
2123
+ }
2124
+ ],
2125
+ "default": null,
2126
+ "title": "Price"
2127
+ },
2128
+ "ratios": {
2129
+ "anyOf": [
2130
+ {
2131
+ "items": {
2132
+ "maximum": 1,
2133
+ "minimum": 0,
2134
+ "type": "number"
2135
+ },
2136
+ "maxItems": 16,
2137
+ "minItems": 1,
2138
+ "type": "array"
2139
+ },
2140
+ {
2141
+ "type": "null"
2142
+ }
2143
+ ],
2144
+ "default": null,
2145
+ "title": "Ratios"
2146
+ },
2147
+ "result_ref": {
2148
+ "anyOf": [
2149
+ {
2150
+ "pattern": "^[a-f0-9]{64}$",
2151
+ "type": "string"
2152
+ },
2153
+ {
2154
+ "type": "null"
2155
+ }
2156
+ ],
2157
+ "default": null,
2158
+ "description": "run_chart_function 返回的结果引用;不能同时指定锚点、边界或比例。名称、颜色可另填。",
2159
+ "title": "Result Ref"
2160
+ },
2161
+ "show_fill": {
2162
+ "anyOf": [
2163
+ {
2164
+ "type": "boolean"
2165
+ },
2166
+ {
2167
+ "type": "null"
2168
+ }
2169
+ ],
2170
+ "default": null,
2171
+ "title": "Show Fill"
2172
+ },
2173
+ "show_midline": {
2174
+ "anyOf": [
2175
+ {
2176
+ "type": "boolean"
2177
+ },
2178
+ {
2179
+ "type": "null"
2180
+ }
2181
+ ],
2182
+ "default": null,
2183
+ "title": "Show Midline"
2184
+ },
2185
+ "start_price": {
2186
+ "anyOf": [
2187
+ {
2188
+ "exclusiveMinimum": 0,
2189
+ "type": "number"
2190
+ },
2191
+ {
2192
+ "type": "null"
2193
+ }
2194
+ ],
2195
+ "default": null,
2196
+ "title": "Start Price"
2197
+ },
2198
+ "start_time": {
2199
+ "anyOf": [
2200
+ {
2201
+ "type": "string"
2202
+ },
2203
+ {
2204
+ "type": "null"
2205
+ }
2206
+ ],
2207
+ "default": null,
2208
+ "title": "Start Time"
2209
+ },
2210
+ "ta_result_ref": {
2211
+ "anyOf": [
2212
+ {
2213
+ "pattern": "^[a-f0-9]{64}$",
2214
+ "type": "string"
2215
+ },
2216
+ {
2217
+ "type": "null"
2218
+ }
2219
+ ],
2220
+ "default": null,
2221
+ "description": "明确选择同一当前图的 SMA/EMA(close) 到 series_line,或 BBANDS(close) 三线到 price_band;不自动绘图。",
2222
+ "title": "Ta Result Ref"
2223
+ },
2224
+ "upper_price": {
2225
+ "anyOf": [
2226
+ {
2227
+ "exclusiveMinimum": 0,
2228
+ "type": "number"
2229
+ },
2230
+ {
2231
+ "type": "null"
2232
+ }
2233
+ ],
2234
+ "default": null,
2235
+ "title": "Upper Price"
2236
+ },
2237
+ "user_confirmed_candidate": {
2238
+ "anyOf": [
2239
+ {
2240
+ "type": "boolean"
2241
+ },
2242
+ {
2243
+ "type": "null"
2244
+ }
2245
+ ],
2246
+ "default": null,
2247
+ "description": "用户明确要求直接绘图或选定候选时填 true;仅分析/提案请求不可填",
2248
+ "title": "User Confirmed Candidate"
2249
+ }
2250
+ },
2251
+ "required": [
2252
+ "kind",
2253
+ "action"
2254
+ ],
2255
+ "title": "ChartEdit",
2256
+ "type": "object"
2257
+ },
2258
+ "LabeledPoint": {
2259
+ "additionalProperties": false,
2260
+ "properties": {
2261
+ "label": {
2262
+ "description": "点名,组内唯一,例如 A、B、C 或 1、2;不是自动识浪结果",
2263
+ "maxLength": 16,
2264
+ "minLength": 1,
2265
+ "title": "Label",
2266
+ "type": "string"
2267
+ },
2268
+ "price": {
2269
+ "exclusiveMinimum": 0,
2270
+ "title": "Price",
2271
+ "type": "number"
2272
+ },
2273
+ "time": {
2274
+ "description": "已加载 K 线的日期、带时区 ISO 或 Unix 秒字符串",
2275
+ "minLength": 1,
2276
+ "title": "Time",
2277
+ "type": "string"
2278
+ }
2279
+ },
2280
+ "required": [
2281
+ "label",
2282
+ "time",
2283
+ "price"
2284
+ ],
2285
+ "title": "LabeledPoint",
2286
+ "type": "object"
2287
+ }
2288
+ },
2289
+ "properties": {
2290
+ "chart_session": {
2291
+ "description": "当前观察的 source_chart_session;必须经行情与 AI 图形核对对齐",
2292
+ "title": "Chart Session",
2293
+ "type": "string"
2294
+ },
2295
+ "context_ref": {
2296
+ "description": "本对话 get_chart_context 返回的当前视图引用",
2297
+ "title": "Context Ref",
2298
+ "type": "string"
2299
+ },
2300
+ "edit": {
2301
+ "$ref": "#/$defs/ChartEdit"
2302
+ },
2303
+ "expected_revision": {
2304
+ "description": "刚读回的观察 revision,不猜测或递增",
2305
+ "exclusiveMinimum": 0,
2306
+ "title": "Expected Revision",
2307
+ "type": "integer"
2308
+ },
2309
+ "request_id": {
2310
+ "description": "同一次准备及重试使用同一 ID;不同参数不可复用",
2311
+ "maxLength": 128,
2312
+ "minLength": 1,
2313
+ "title": "Request Id",
2314
+ "type": "string"
2315
+ },
2316
+ "symbol": {
2317
+ "title": "Symbol",
2318
+ "type": "string"
2319
+ }
2320
+ },
2321
+ "required": [
2322
+ "context_ref",
2323
+ "expected_revision",
2324
+ "chart_session",
2325
+ "symbol",
2326
+ "request_id",
2327
+ "edit"
2328
+ ],
2329
+ "title": "prepare_chart_editArguments",
2330
+ "type": "object"
2331
+ },
2332
+ "name": "prepare_chart_edit"
2333
+ },
2334
+ {
2335
+ "description": "Queue exactly this prepared candidate for its owning live view, never select a global chart.\n\nIdempotent for this immutable candidate. Queued/delivered do not prove application.\nRead get_chart_edit_status; applied confirms view state only, not screen pixels.\nUnknown outcomes stop automatic retries. No candle fetch or ordinary renderer bypass.",
2336
+ "inputSchema": {
2337
+ "properties": {
2338
+ "candidate_chart_session": {
2339
+ "title": "Candidate Chart Session",
2340
+ "type": "string"
2341
+ },
2342
+ "context_ref": {
2343
+ "title": "Context Ref",
2344
+ "type": "string"
2345
+ }
2346
+ },
2347
+ "required": [
2348
+ "context_ref",
2349
+ "candidate_chart_session"
2350
+ ],
2351
+ "title": "apply_chart_editArguments",
2352
+ "type": "object"
2353
+ },
2354
+ "name": "apply_chart_edit"
2355
+ },
2356
+ {
2357
+ "annotations": {
2358
+ "readOnlyHint": true
2359
+ },
2360
+ "description": "Read the exact candidate's historical preparation/application state, not screen visibility.\n\nA verified prepared candidate without an application request returns prepared/not_requested.\nThis does not prove the current view is editable or permit applying an old candidate after refresh.\nOptional bounded wait avoids tight polling; never fetches, republishes or invents a receipt.\nRead fresh get_chart_context separately before another mutation.",
2361
+ "inputSchema": {
2362
+ "properties": {
2363
+ "candidate_chart_session": {
2364
+ "title": "Candidate Chart Session",
2365
+ "type": "string"
2366
+ },
2367
+ "context_ref": {
2368
+ "title": "Context Ref",
2369
+ "type": "string"
2370
+ },
2371
+ "wait_ms": {
2372
+ "default": 0,
2373
+ "maximum": 5000,
2374
+ "minimum": 0,
2375
+ "title": "Wait Ms",
2376
+ "type": "integer"
2377
+ }
2378
+ },
2379
+ "required": [
2380
+ "context_ref",
2381
+ "candidate_chart_session"
2382
+ ],
2383
+ "title": "get_chart_edit_statusArguments",
2384
+ "type": "object"
2385
+ },
2386
+ "name": "get_chart_edit_status"
2387
+ },
2388
+ {
2389
+ "annotations": {
2390
+ "readOnlyHint": true
2391
+ },
2392
+ "description": "Read exact AI horizontal lines in the named snapshot; no market fetch or UI claim.",
2393
+ "inputSchema": {
2394
+ "properties": {
2395
+ "chart_session": {
2396
+ "description": "当前对话最近一次工具返回的 chart_session",
2397
+ "title": "Chart Session",
2398
+ "type": "string"
2399
+ },
2400
+ "symbol": {
2401
+ "description": "该快照的完整标的代码",
2402
+ "title": "Symbol",
2403
+ "type": "string"
2404
+ }
2405
+ },
2406
+ "required": [
2407
+ "chart_session",
2408
+ "symbol"
2409
+ ],
2410
+ "title": "get_horizontal_linesArguments",
2411
+ "type": "object"
2412
+ },
2413
+ "name": "get_horizontal_lines"
2414
+ },
2415
+ {
2416
+ "description": "LEGACY SNAPSHOT ONLY. Not for the current browser chart, even literal requests.\n\nFor current charts use get_chart_context -> prepare_chart_edit -> apply_chart_edit -> get_chart_edit_status.\nOnly explicit snapshot-editing requests use this tool. Creates a full-width horizontal line snapshot.",
2417
+ "inputSchema": {
2418
+ "properties": {
2419
+ "chart_session": {
2420
+ "description": "当前对话最近一次工具返回的 chart_session",
2421
+ "title": "Chart Session",
2422
+ "type": "string"
2423
+ },
2424
+ "color": {
2425
+ "default": "info",
2426
+ "description": "按用户颜色填写;蓝色/info、绿色/success、橙色/warning、红色/danger;success不是成功状态",
2427
+ "enum": [
2428
+ "info",
2429
+ "success",
2430
+ "warning",
2431
+ "danger",
2432
+ "blue",
2433
+ "green",
2434
+ "orange",
2435
+ "red",
2436
+ "蓝色",
2437
+ "绿色",
2438
+ "橙色",
2439
+ "红色"
2440
+ ],
2441
+ "title": "Color",
2442
+ "type": "string"
2443
+ },
2444
+ "name": {
2445
+ "default": "",
2446
+ "description": "用户指定的完整名称,原样保留,不得缩写",
2447
+ "maxLength": 48,
2448
+ "title": "Name",
2449
+ "type": "string"
2450
+ },
2451
+ "price": {
2452
+ "description": "用户指定的精确价格",
2453
+ "exclusiveMinimum": 0,
2454
+ "title": "Price",
2455
+ "type": "number"
2456
+ },
2457
+ "request_id": {
2458
+ "anyOf": [
2459
+ {
2460
+ "maxLength": 128,
2461
+ "minLength": 1,
2462
+ "type": "string"
2463
+ },
2464
+ {
2465
+ "type": "null"
2466
+ }
2467
+ ],
2468
+ "default": null,
2469
+ "description": "可选重试标识;相同操作重试使用同一值",
2470
+ "title": "Request Id"
2471
+ },
2472
+ "symbol": {
2473
+ "description": "该快照的完整标的代码",
2474
+ "title": "Symbol",
2475
+ "type": "string"
2476
+ }
2477
+ },
2478
+ "required": [
2479
+ "chart_session",
2480
+ "symbol",
2481
+ "price"
2482
+ ],
2483
+ "title": "create_horizontal_lineArguments",
2484
+ "type": "object"
2485
+ },
2486
+ "name": "create_horizontal_line"
2487
+ },
2488
+ {
2489
+ "description": "LEGACY SNAPSHOT ONLY. Not for the current browser chart, even literal requests.\n\nFor current charts use get_chart_context -> prepare_chart_edit -> apply_chart_edit -> get_chart_edit_status.\nOnly explicit snapshot-editing requests use this tool. Move/rename/recolor one snapshot AI line by ID.",
2490
+ "inputSchema": {
2491
+ "properties": {
2492
+ "chart_session": {
2493
+ "description": "当前对话最新的 chart_session,不要使用旧快照",
2494
+ "title": "Chart Session",
2495
+ "type": "string"
2496
+ },
2497
+ "color": {
2498
+ "anyOf": [
2499
+ {
2500
+ "enum": [
2501
+ "info",
2502
+ "success",
2503
+ "warning",
2504
+ "danger",
2505
+ "blue",
2506
+ "green",
2507
+ "orange",
2508
+ "red",
2509
+ "蓝色",
2510
+ "绿色",
2511
+ "橙色",
2512
+ "红色"
2513
+ ],
2514
+ "type": "string"
2515
+ },
2516
+ {
2517
+ "type": "null"
2518
+ }
2519
+ ],
2520
+ "default": null,
2521
+ "description": "仅在用户要求改色时填写,可直接传绿色/红色等;success=绿色",
2522
+ "title": "Color"
2523
+ },
2524
+ "line_id": {
2525
+ "description": "create_horizontal_line 或 get_horizontal_lines 返回的 line.id",
2526
+ "title": "Line Id",
2527
+ "type": "string"
2528
+ },
2529
+ "name": {
2530
+ "anyOf": [
2531
+ {
2532
+ "maxLength": 48,
2533
+ "type": "string"
2534
+ },
2535
+ {
2536
+ "type": "null"
2537
+ }
2538
+ ],
2539
+ "default": null,
2540
+ "description": "修改为用户完整指定名称,不缩写",
2541
+ "title": "Name"
2542
+ },
2543
+ "price": {
2544
+ "anyOf": [
2545
+ {
2546
+ "exclusiveMinimum": 0,
2547
+ "type": "number"
2548
+ },
2549
+ {
2550
+ "type": "null"
2551
+ }
2552
+ ],
2553
+ "default": null,
2554
+ "title": "Price"
2555
+ },
2556
+ "symbol": {
2557
+ "title": "Symbol",
2558
+ "type": "string"
2559
+ }
2560
+ },
2561
+ "required": [
2562
+ "chart_session",
2563
+ "symbol",
2564
+ "line_id"
2565
+ ],
2566
+ "title": "update_horizontal_lineArguments",
2567
+ "type": "object"
2568
+ },
2569
+ "name": "update_horizontal_line"
2570
+ },
2571
+ {
2572
+ "description": "LEGACY SNAPSHOT ONLY. Not for the current browser chart, even literal requests.\n\nFor current charts use get_chart_context -> prepare_chart_edit -> apply_chart_edit -> get_chart_edit_status.\nOnly explicit snapshot-editing requests use this tool. Delete one AI line from the snapshot, not the live UI.",
2573
+ "inputSchema": {
2574
+ "properties": {
2575
+ "chart_session": {
2576
+ "title": "Chart Session",
2577
+ "type": "string"
2578
+ },
2579
+ "line_id": {
2580
+ "title": "Line Id",
2581
+ "type": "string"
2582
+ },
2583
+ "symbol": {
2584
+ "title": "Symbol",
2585
+ "type": "string"
2586
+ }
2587
+ },
2588
+ "required": [
2589
+ "chart_session",
2590
+ "symbol",
2591
+ "line_id"
2592
+ ],
2593
+ "title": "delete_horizontal_lineArguments",
2594
+ "type": "object"
2595
+ },
2596
+ "name": "delete_horizontal_line"
2597
+ },
2598
+ {
2599
+ "description": "LEGACY SNAPSHOT ONLY. Not for the current browser chart, even literal requests.\n\nFor current charts use get_chart_context -> prepare_chart_edit -> apply_chart_edit -> get_chart_edit_status.\nOnly explicit snapshot-editing requests use this tool.\nDraw an exact finite two-point segment. No rays, auto anchors, channels or market fetches.\n\nUse the latest chart_session in this conversation and perform mutations sequentially.",
2600
+ "inputSchema": {
2601
+ "properties": {
2602
+ "chart_session": {
2603
+ "title": "Chart Session",
2604
+ "type": "string"
2605
+ },
2606
+ "color": {
2607
+ "default": "info",
2608
+ "description": "用户指定颜色;蓝色/info、绿色/success、橙色/warning、红色/danger",
2609
+ "enum": [
2610
+ "info",
2611
+ "success",
2612
+ "warning",
2613
+ "danger",
2614
+ "blue",
2615
+ "green",
2616
+ "orange",
2617
+ "red",
2618
+ "蓝色",
2619
+ "绿色",
2620
+ "橙色",
2621
+ "红色"
2622
+ ],
2623
+ "title": "Color",
2624
+ "type": "string"
2625
+ },
2626
+ "end_price": {
2627
+ "exclusiveMinimum": 0,
2628
+ "title": "End Price",
2629
+ "type": "number"
2630
+ },
2631
+ "end_time": {
2632
+ "description": "终点:必须是当前图中已有K线,且晚于起点;不自动就近匹配",
2633
+ "title": "End Time",
2634
+ "type": "string"
2635
+ },
2636
+ "name": {
2637
+ "default": "",
2638
+ "description": "用户指定的完整趋势线名称,不缩写、不省略前缀",
2639
+ "maxLength": 48,
2640
+ "title": "Name",
2641
+ "type": "string"
2642
+ },
2643
+ "request_id": {
2644
+ "anyOf": [
2645
+ {
2646
+ "maxLength": 128,
2647
+ "minLength": 1,
2648
+ "type": "string"
2649
+ },
2650
+ {
2651
+ "type": "null"
2652
+ }
2653
+ ],
2654
+ "default": null,
2655
+ "title": "Request Id"
2656
+ },
2657
+ "start_price": {
2658
+ "exclusiveMinimum": 0,
2659
+ "title": "Start Price",
2660
+ "type": "number"
2661
+ },
2662
+ "start_time": {
2663
+ "description": "起点:已有K线日期 YYYY-MM-DD(上海时区),或精确带时区ISO收盘时间/Unix秒字符串",
2664
+ "title": "Start Time",
2665
+ "type": "string"
2666
+ },
2667
+ "symbol": {
2668
+ "title": "Symbol",
2669
+ "type": "string"
2670
+ }
2671
+ },
2672
+ "required": [
2673
+ "chart_session",
2674
+ "symbol",
2675
+ "start_time",
2676
+ "start_price",
2677
+ "end_time",
2678
+ "end_price"
2679
+ ],
2680
+ "title": "create_trend_lineArguments",
2681
+ "type": "object"
2682
+ },
2683
+ "name": "create_trend_line"
2684
+ },
2685
+ {
2686
+ "annotations": {
2687
+ "readOnlyHint": true
2688
+ },
2689
+ "description": "Read exact AI trend segments and stable IDs in this conversation's latest snapshot.",
2690
+ "inputSchema": {
2691
+ "properties": {
2692
+ "chart_session": {
2693
+ "title": "Chart Session",
2694
+ "type": "string"
2695
+ },
2696
+ "symbol": {
2697
+ "title": "Symbol",
2698
+ "type": "string"
2699
+ }
2700
+ },
2701
+ "required": [
2702
+ "chart_session",
2703
+ "symbol"
2704
+ ],
2705
+ "title": "get_trend_linesArguments",
2706
+ "type": "object"
2707
+ },
2708
+ "name": "get_trend_lines"
2709
+ },
2710
+ {
2711
+ "description": "LEGACY SNAPSHOT ONLY. Not for the current browser chart, even literal requests.\n\nFor current charts use get_chart_context -> prepare_chart_edit -> apply_chart_edit -> get_chart_edit_status.\nOnly explicit snapshot-editing requests use this tool.\nModify only supplied anchors/name/color by AI trend line ID. Preserve all other shapes.\n\nSame exact time rules as create_trend_line. Use latest chart_session, never the old parent.",
2712
+ "inputSchema": {
2713
+ "properties": {
2714
+ "chart_session": {
2715
+ "title": "Chart Session",
2716
+ "type": "string"
2717
+ },
2718
+ "color": {
2719
+ "anyOf": [
2720
+ {
2721
+ "enum": [
2722
+ "info",
2723
+ "success",
2724
+ "warning",
2725
+ "danger",
2726
+ "blue",
2727
+ "green",
2728
+ "orange",
2729
+ "red",
2730
+ "蓝色",
2731
+ "绿色",
2732
+ "橙色",
2733
+ "红色"
2734
+ ],
2735
+ "type": "string"
2736
+ },
2737
+ {
2738
+ "type": "null"
2739
+ }
2740
+ ],
2741
+ "default": null,
2742
+ "description": "仅修改所请求颜色;绿色/green/success同义,红色/red/danger同义",
2743
+ "title": "Color"
2744
+ },
2745
+ "end_price": {
2746
+ "anyOf": [
2747
+ {
2748
+ "exclusiveMinimum": 0,
2749
+ "type": "number"
2750
+ },
2751
+ {
2752
+ "type": "null"
2753
+ }
2754
+ ],
2755
+ "default": null,
2756
+ "title": "End Price"
2757
+ },
2758
+ "end_time": {
2759
+ "anyOf": [
2760
+ {
2761
+ "type": "string"
2762
+ },
2763
+ {
2764
+ "type": "null"
2765
+ }
2766
+ ],
2767
+ "default": null,
2768
+ "title": "End Time"
2769
+ },
2770
+ "line_id": {
2771
+ "title": "Line Id",
2772
+ "type": "string"
2773
+ },
2774
+ "name": {
2775
+ "anyOf": [
2776
+ {
2777
+ "maxLength": 48,
2778
+ "type": "string"
2779
+ },
2780
+ {
2781
+ "type": "null"
2782
+ }
2783
+ ],
2784
+ "default": null,
2785
+ "description": "用户指定的完整名称,不缩写",
2786
+ "title": "Name"
2787
+ },
2788
+ "start_price": {
2789
+ "anyOf": [
2790
+ {
2791
+ "exclusiveMinimum": 0,
2792
+ "type": "number"
2793
+ },
2794
+ {
2795
+ "type": "null"
2796
+ }
2797
+ ],
2798
+ "default": null,
2799
+ "title": "Start Price"
2800
+ },
2801
+ "start_time": {
2802
+ "anyOf": [
2803
+ {
2804
+ "type": "string"
2805
+ },
2806
+ {
2807
+ "type": "null"
2808
+ }
2809
+ ],
2810
+ "default": null,
2811
+ "title": "Start Time"
2812
+ },
2813
+ "symbol": {
2814
+ "title": "Symbol",
2815
+ "type": "string"
2816
+ }
2817
+ },
2818
+ "required": [
2819
+ "chart_session",
2820
+ "symbol",
2821
+ "line_id"
2822
+ ],
2823
+ "title": "update_trend_lineArguments",
2824
+ "type": "object"
2825
+ },
2826
+ "name": "update_trend_line"
2827
+ },
2828
+ {
2829
+ "description": "LEGACY SNAPSHOT ONLY. Not for the current browser chart, even literal requests.\n\nFor current charts use get_chart_context -> prepare_chart_edit -> apply_chart_edit -> get_chart_edit_status.\nOnly explicit snapshot-editing requests use this tool. Delete one AI trend segment from the snapshot.",
2830
+ "inputSchema": {
2831
+ "properties": {
2832
+ "chart_session": {
2833
+ "title": "Chart Session",
2834
+ "type": "string"
2835
+ },
2836
+ "line_id": {
2837
+ "title": "Line Id",
2838
+ "type": "string"
2839
+ },
2840
+ "symbol": {
2841
+ "title": "Symbol",
2842
+ "type": "string"
2843
+ }
2844
+ },
2845
+ "required": [
2846
+ "chart_session",
2847
+ "symbol",
2848
+ "line_id"
2849
+ ],
2850
+ "title": "delete_trend_lineArguments",
2851
+ "type": "object"
2852
+ },
2853
+ "name": "delete_trend_line"
2854
+ },
2855
+ {
2856
+ "description": "LEGACY SNAPSHOT ONLY. Not for the current browser chart, even literal requests.\n\nFor current charts use get_chart_context -> prepare_chart_edit -> apply_chart_edit -> get_chart_edit_status.\nOnly explicit snapshot-editing requests use this tool.\nCreate one finite parallel channel (ascending/descending/horizontal) from three explicit anchors.\n\nExact bar-time rules as trend lines. Uses candle-index spacing and linear prices, not calendar\nelapsed time; no rays, log-price geometry, automatic identification or invented anchors.\nRead returned upper/lower edges; verify user-requested fields via verify_chart_drawings.",
2857
+ "inputSchema": {
2858
+ "properties": {
2859
+ "chart_session": {
2860
+ "description": "当前对话最新chart_session,每次操作依次使用新快照",
2861
+ "title": "Chart Session",
2862
+ "type": "string"
2863
+ },
2864
+ "color": {
2865
+ "default": "info",
2866
+ "description": "蓝色/info、绿色/success、橙色/warning、红色/danger",
2867
+ "enum": [
2868
+ "info",
2869
+ "success",
2870
+ "warning",
2871
+ "danger",
2872
+ "blue",
2873
+ "green",
2874
+ "orange",
2875
+ "red",
2876
+ "蓝色",
2877
+ "绿色",
2878
+ "橙色",
2879
+ "红色"
2880
+ ],
2881
+ "title": "Color",
2882
+ "type": "string"
2883
+ },
2884
+ "end_price": {
2885
+ "exclusiveMinimum": 0,
2886
+ "title": "End Price",
2887
+ "type": "number"
2888
+ },
2889
+ "end_time": {
2890
+ "description": "基准线终点:已有K线时间,必须晚于起点",
2891
+ "title": "End Time",
2892
+ "type": "string"
2893
+ },
2894
+ "name": {
2895
+ "default": "",
2896
+ "description": "用户指定的完整通道名称,不缩写",
2897
+ "maxLength": 48,
2898
+ "title": "Name",
2899
+ "type": "string"
2900
+ },
2901
+ "parallel_price": {
2902
+ "description": "第三点精确价格,不得落在基准线上;不自动猜通道宽度",
2903
+ "exclusiveMinimum": 0,
2904
+ "title": "Parallel Price",
2905
+ "type": "number"
2906
+ },
2907
+ "parallel_time": {
2908
+ "description": "第三点:另一平行边界的已有K线时间,位于起止时间内;必须由用户明确提供",
2909
+ "title": "Parallel Time",
2910
+ "type": "string"
2911
+ },
2912
+ "request_id": {
2913
+ "anyOf": [
2914
+ {
2915
+ "maxLength": 128,
2916
+ "minLength": 1,
2917
+ "type": "string"
2918
+ },
2919
+ {
2920
+ "type": "null"
2921
+ }
2922
+ ],
2923
+ "default": null,
2924
+ "title": "Request Id"
2925
+ },
2926
+ "show_midline": {
2927
+ "default": true,
2928
+ "description": "是否显示通道中线,默认显示",
2929
+ "title": "Show Midline",
2930
+ "type": "boolean"
2931
+ },
2932
+ "start_price": {
2933
+ "exclusiveMinimum": 0,
2934
+ "title": "Start Price",
2935
+ "type": "number"
2936
+ },
2937
+ "start_time": {
2938
+ "description": "基准线起点:已有K线日期,或带时区收盘时间/Unix秒字符串",
2939
+ "title": "Start Time",
2940
+ "type": "string"
2941
+ },
2942
+ "symbol": {
2943
+ "title": "Symbol",
2944
+ "type": "string"
2945
+ }
2946
+ },
2947
+ "required": [
2948
+ "chart_session",
2949
+ "symbol",
2950
+ "start_time",
2951
+ "start_price",
2952
+ "end_time",
2953
+ "end_price",
2954
+ "parallel_time",
2955
+ "parallel_price"
2956
+ ],
2957
+ "title": "create_channelArguments",
2958
+ "type": "object"
2959
+ },
2960
+ "name": "create_channel"
2961
+ },
2962
+ {
2963
+ "annotations": {
2964
+ "readOnlyHint": true
2965
+ },
2966
+ "description": "Read AI channels, three source anchors, derived upper/lower edges and stable IDs. No market fetch.",
2967
+ "inputSchema": {
2968
+ "properties": {
2969
+ "chart_session": {
2970
+ "title": "Chart Session",
2971
+ "type": "string"
2972
+ },
2973
+ "symbol": {
2974
+ "title": "Symbol",
2975
+ "type": "string"
2976
+ }
2977
+ },
2978
+ "required": [
2979
+ "chart_session",
2980
+ "symbol"
2981
+ ],
2982
+ "title": "get_channelsArguments",
2983
+ "type": "object"
2984
+ },
2985
+ "name": "get_channels"
2986
+ },
2987
+ {
2988
+ "description": "LEGACY SNAPSHOT ONLY. Not for the current browser chart, even literal requests.\n\nFor current charts use get_chart_context -> prepare_chart_edit -> apply_chart_edit -> get_chart_edit_status.\nOnly explicit snapshot-editing requests use this tool.\nEdit one channel atomically; recalculate parallel boundaries from its three explicit anchors.\n\nUnspecified anchors remain fixed. Changing baseline may change width relative to the unchanged\nthird anchor. To change width adjust parallel_price; no partial updates on invalid geometry.\nUse latest chart_session and verify original user-requested fields after publication.",
2989
+ "inputSchema": {
2990
+ "properties": {
2991
+ "channel_id": {
2992
+ "description": "创建/读取返回的channel.id,不是边界线ID",
2993
+ "title": "Channel Id",
2994
+ "type": "string"
2995
+ },
2996
+ "chart_session": {
2997
+ "title": "Chart Session",
2998
+ "type": "string"
2999
+ },
3000
+ "color": {
3001
+ "anyOf": [
3002
+ {
3003
+ "enum": [
3004
+ "info",
3005
+ "success",
3006
+ "warning",
3007
+ "danger",
3008
+ "blue",
3009
+ "green",
3010
+ "orange",
3011
+ "red",
3012
+ "蓝色",
3013
+ "绿色",
3014
+ "橙色",
3015
+ "红色"
3016
+ ],
3017
+ "type": "string"
3018
+ },
3019
+ {
3020
+ "type": "null"
3021
+ }
3022
+ ],
3023
+ "default": null,
3024
+ "description": "可直接传绿色/红色等;省略表示不改色",
3025
+ "title": "Color"
3026
+ },
3027
+ "end_price": {
3028
+ "anyOf": [
3029
+ {
3030
+ "exclusiveMinimum": 0,
3031
+ "type": "number"
3032
+ },
3033
+ {
3034
+ "type": "null"
3035
+ }
3036
+ ],
3037
+ "default": null,
3038
+ "title": "End Price"
3039
+ },
3040
+ "end_time": {
3041
+ "anyOf": [
3042
+ {
3043
+ "type": "string"
3044
+ },
3045
+ {
3046
+ "type": "null"
3047
+ }
3048
+ ],
3049
+ "default": null,
3050
+ "title": "End Time"
3051
+ },
3052
+ "name": {
3053
+ "anyOf": [
3054
+ {
3055
+ "maxLength": 48,
3056
+ "type": "string"
3057
+ },
3058
+ {
3059
+ "type": "null"
3060
+ }
3061
+ ],
3062
+ "default": null,
3063
+ "description": "完整名称,不缩写",
3064
+ "title": "Name"
3065
+ },
3066
+ "parallel_price": {
3067
+ "anyOf": [
3068
+ {
3069
+ "exclusiveMinimum": 0,
3070
+ "type": "number"
3071
+ },
3072
+ {
3073
+ "type": "null"
3074
+ }
3075
+ ],
3076
+ "default": null,
3077
+ "title": "Parallel Price"
3078
+ },
3079
+ "parallel_time": {
3080
+ "anyOf": [
3081
+ {
3082
+ "type": "string"
3083
+ },
3084
+ {
3085
+ "type": "null"
3086
+ }
3087
+ ],
3088
+ "default": null,
3089
+ "title": "Parallel Time"
3090
+ },
3091
+ "show_midline": {
3092
+ "anyOf": [
3093
+ {
3094
+ "type": "boolean"
3095
+ },
3096
+ {
3097
+ "type": "null"
3098
+ }
3099
+ ],
3100
+ "default": null,
3101
+ "title": "Show Midline"
3102
+ },
3103
+ "start_price": {
3104
+ "anyOf": [
3105
+ {
3106
+ "exclusiveMinimum": 0,
3107
+ "type": "number"
3108
+ },
3109
+ {
3110
+ "type": "null"
3111
+ }
3112
+ ],
3113
+ "default": null,
3114
+ "title": "Start Price"
3115
+ },
3116
+ "start_time": {
3117
+ "anyOf": [
3118
+ {
3119
+ "type": "string"
3120
+ },
3121
+ {
3122
+ "type": "null"
3123
+ }
3124
+ ],
3125
+ "default": null,
3126
+ "title": "Start Time"
3127
+ },
3128
+ "symbol": {
3129
+ "title": "Symbol",
3130
+ "type": "string"
3131
+ }
3132
+ },
3133
+ "required": [
3134
+ "chart_session",
3135
+ "symbol",
3136
+ "channel_id"
3137
+ ],
3138
+ "title": "update_channelArguments",
3139
+ "type": "object"
3140
+ },
3141
+ "name": "update_channel"
3142
+ },
3143
+ {
3144
+ "description": "LEGACY SNAPSHOT ONLY. Not for the current browser chart, even literal requests.\n\nFor current charts use get_chart_context -> prepare_chart_edit -> apply_chart_edit -> get_chart_edit_status.\nOnly explicit snapshot-editing requests use this tool. Delete one whole AI channel from the snapshot.",
3145
+ "inputSchema": {
3146
+ "properties": {
3147
+ "channel_id": {
3148
+ "title": "Channel Id",
3149
+ "type": "string"
3150
+ },
3151
+ "chart_session": {
3152
+ "title": "Chart Session",
3153
+ "type": "string"
3154
+ },
3155
+ "symbol": {
3156
+ "title": "Symbol",
3157
+ "type": "string"
3158
+ }
3159
+ },
3160
+ "required": [
3161
+ "chart_session",
3162
+ "symbol",
3163
+ "channel_id"
3164
+ ],
3165
+ "title": "delete_channelArguments",
3166
+ "type": "object"
3167
+ },
3168
+ "name": "delete_channel"
3169
+ },
3170
+ {
3171
+ "description": "LEGACY SNAPSHOT ONLY. Not for the current browser chart, even literal requests.\n\nFor current charts use get_chart_context -> prepare_chart_edit -> apply_chart_edit -> get_chart_edit_status.\nOnly explicit snapshot-editing requests use this tool.\nCreate one finite time/price rectangle using explicit user or approved-proposal bounds.\n\nThe executor does no pattern recognition: the host may analyze real candles when authorized,\npropose exact bounds, and honor a user's request to confirm before drawing. No invented bars or rays.\nOwns all four edges and optional fill under one stable ID. Verify the original requested/approved\nname/color/time/bounds/show_fill via verify_chart_drawings(kind='rectangle').",
3172
+ "inputSchema": {
3173
+ "properties": {
3174
+ "chart_session": {
3175
+ "description": "当前对话最新 chart_session,操作后依次使用新快照",
3176
+ "title": "Chart Session",
3177
+ "type": "string"
3178
+ },
3179
+ "color": {
3180
+ "default": "info",
3181
+ "description": "蓝色/info、绿色/success、橙色/warning、红色/danger",
3182
+ "enum": [
3183
+ "info",
3184
+ "success",
3185
+ "warning",
3186
+ "danger",
3187
+ "blue",
3188
+ "green",
3189
+ "orange",
3190
+ "red",
3191
+ "蓝色",
3192
+ "绿色",
3193
+ "橙色",
3194
+ "红色"
3195
+ ],
3196
+ "title": "Color",
3197
+ "type": "string"
3198
+ },
3199
+ "end_time": {
3200
+ "description": "平台框终点:已有 K 线时间,必须晚于起点;不自动就近匹配",
3201
+ "title": "End Time",
3202
+ "type": "string"
3203
+ },
3204
+ "lower_price": {
3205
+ "description": "明确下沿:用户指定,或用户确认的宿主分析方案;执行器不选点",
3206
+ "exclusiveMinimum": 0,
3207
+ "title": "Lower Price",
3208
+ "type": "number"
3209
+ },
3210
+ "name": {
3211
+ "default": "",
3212
+ "description": "用户指定或确认方案的完整平台框名称,不缩写",
3213
+ "maxLength": 48,
3214
+ "title": "Name",
3215
+ "type": "string"
3216
+ },
3217
+ "request_id": {
3218
+ "anyOf": [
3219
+ {
3220
+ "maxLength": 128,
3221
+ "minLength": 1,
3222
+ "type": "string"
3223
+ },
3224
+ {
3225
+ "type": "null"
3226
+ }
3227
+ ],
3228
+ "default": null,
3229
+ "title": "Request Id"
3230
+ },
3231
+ "show_fill": {
3232
+ "default": true,
3233
+ "description": "是否显示淡色填充,默认显示;关闭后保留完整边框",
3234
+ "title": "Show Fill",
3235
+ "type": "boolean"
3236
+ },
3237
+ "start_time": {
3238
+ "description": "平台框起点:已有 K 线日期,或精确带时区收盘时间/Unix秒字符串",
3239
+ "title": "Start Time",
3240
+ "type": "string"
3241
+ },
3242
+ "symbol": {
3243
+ "title": "Symbol",
3244
+ "type": "string"
3245
+ },
3246
+ "upper_price": {
3247
+ "description": "平台上沿价格,必须高于下沿,不自动交换",
3248
+ "exclusiveMinimum": 0,
3249
+ "title": "Upper Price",
3250
+ "type": "number"
3251
+ }
3252
+ },
3253
+ "required": [
3254
+ "chart_session",
3255
+ "symbol",
3256
+ "start_time",
3257
+ "end_time",
3258
+ "lower_price",
3259
+ "upper_price"
3260
+ ],
3261
+ "title": "create_rectangleArguments",
3262
+ "type": "object"
3263
+ },
3264
+ "name": "create_rectangle"
3265
+ },
3266
+ {
3267
+ "annotations": {
3268
+ "readOnlyHint": true
3269
+ },
3270
+ "description": "Read AI platform rectangles, exact time/price bounds, fill state and stable IDs. No market fetch.",
3271
+ "inputSchema": {
3272
+ "properties": {
3273
+ "chart_session": {
3274
+ "title": "Chart Session",
3275
+ "type": "string"
3276
+ },
3277
+ "symbol": {
3278
+ "title": "Symbol",
3279
+ "type": "string"
3280
+ }
3281
+ },
3282
+ "required": [
3283
+ "chart_session",
3284
+ "symbol"
3285
+ ],
3286
+ "title": "get_rectanglesArguments",
3287
+ "type": "object"
3288
+ },
3289
+ "name": "get_rectangles"
3290
+ },
3291
+ {
3292
+ "description": "LEGACY SNAPSHOT ONLY. Not for the current browser chart, even literal requests.\n\nFor current charts use get_chart_context -> prepare_chart_edit -> apply_chart_edit -> get_chart_edit_status.\nOnly explicit snapshot-editing requests use this tool.\nAtomically edit one platform rectangle by ID; unspecified bounds/style remain fixed.\n\nChange one bound or both together; invalid time/price order rejects the whole update.\nUse the latest chart_session and verify original requested fields, not copied actual values.",
3293
+ "inputSchema": {
3294
+ "properties": {
3295
+ "chart_session": {
3296
+ "title": "Chart Session",
3297
+ "type": "string"
3298
+ },
3299
+ "color": {
3300
+ "anyOf": [
3301
+ {
3302
+ "enum": [
3303
+ "info",
3304
+ "success",
3305
+ "warning",
3306
+ "danger",
3307
+ "blue",
3308
+ "green",
3309
+ "orange",
3310
+ "red",
3311
+ "蓝色",
3312
+ "绿色",
3313
+ "橙色",
3314
+ "红色"
3315
+ ],
3316
+ "type": "string"
3317
+ },
3318
+ {
3319
+ "type": "null"
3320
+ }
3321
+ ],
3322
+ "default": null,
3323
+ "description": "仅修改所请求颜色;绿色/green/success同义",
3324
+ "title": "Color"
3325
+ },
3326
+ "end_time": {
3327
+ "anyOf": [
3328
+ {
3329
+ "type": "string"
3330
+ },
3331
+ {
3332
+ "type": "null"
3333
+ }
3334
+ ],
3335
+ "default": null,
3336
+ "title": "End Time"
3337
+ },
3338
+ "lower_price": {
3339
+ "anyOf": [
3340
+ {
3341
+ "exclusiveMinimum": 0,
3342
+ "type": "number"
3343
+ },
3344
+ {
3345
+ "type": "null"
3346
+ }
3347
+ ],
3348
+ "default": null,
3349
+ "title": "Lower Price"
3350
+ },
3351
+ "name": {
3352
+ "anyOf": [
3353
+ {
3354
+ "maxLength": 48,
3355
+ "type": "string"
3356
+ },
3357
+ {
3358
+ "type": "null"
3359
+ }
3360
+ ],
3361
+ "default": null,
3362
+ "description": "用户指定的完整名称,不缩写",
3363
+ "title": "Name"
3364
+ },
3365
+ "rectangle_id": {
3366
+ "description": "创建/读回返回的 rectangle.id,不是名称或手动图形 ID",
3367
+ "title": "Rectangle Id",
3368
+ "type": "string"
3369
+ },
3370
+ "show_fill": {
3371
+ "anyOf": [
3372
+ {
3373
+ "type": "boolean"
3374
+ },
3375
+ {
3376
+ "type": "null"
3377
+ }
3378
+ ],
3379
+ "default": null,
3380
+ "title": "Show Fill"
3381
+ },
3382
+ "start_time": {
3383
+ "anyOf": [
3384
+ {
3385
+ "type": "string"
3386
+ },
3387
+ {
3388
+ "type": "null"
3389
+ }
3390
+ ],
3391
+ "default": null,
3392
+ "title": "Start Time"
3393
+ },
3394
+ "symbol": {
3395
+ "title": "Symbol",
3396
+ "type": "string"
3397
+ },
3398
+ "upper_price": {
3399
+ "anyOf": [
3400
+ {
3401
+ "exclusiveMinimum": 0,
3402
+ "type": "number"
3403
+ },
3404
+ {
3405
+ "type": "null"
3406
+ }
3407
+ ],
3408
+ "default": null,
3409
+ "title": "Upper Price"
3410
+ }
3411
+ },
3412
+ "required": [
3413
+ "chart_session",
3414
+ "symbol",
3415
+ "rectangle_id"
3416
+ ],
3417
+ "title": "update_rectangleArguments",
3418
+ "type": "object"
3419
+ },
3420
+ "name": "update_rectangle"
3421
+ },
3422
+ {
3423
+ "description": "LEGACY SNAPSHOT ONLY. Not for the current browser chart, even literal requests.\n\nFor current charts use get_chart_context -> prepare_chart_edit -> apply_chart_edit -> get_chart_edit_status.\nOnly explicit snapshot-editing requests use this tool. Delete one whole AI rectangle from the snapshot.",
3424
+ "inputSchema": {
3425
+ "properties": {
3426
+ "chart_session": {
3427
+ "title": "Chart Session",
3428
+ "type": "string"
3429
+ },
3430
+ "rectangle_id": {
3431
+ "title": "Rectangle Id",
3432
+ "type": "string"
3433
+ },
3434
+ "symbol": {
3435
+ "title": "Symbol",
3436
+ "type": "string"
3437
+ }
3438
+ },
3439
+ "required": [
3440
+ "chart_session",
3441
+ "symbol",
3442
+ "rectangle_id"
3443
+ ],
3444
+ "title": "delete_rectangleArguments",
3445
+ "type": "object"
3446
+ },
3447
+ "name": "delete_rectangle"
3448
+ },
3449
+ {
3450
+ "annotations": {
3451
+ "readOnlyHint": true
3452
+ },
3453
+ "description": "Read-only exact snapshot verification. Catch shortened labels, omitted colors and wrong anchors.\n\nReturn each expected/actual field and mismatch; matches=false must not be described as success.\nNever publishes a snapshot or proves visible rendering. Verify only supplied expectations,\nnot inferred human intent. Repair mismatches only within the user's existing instructions\nor confirmed proposal; never alter an approved plan to make a mismatching result pass.",
3454
+ "inputSchema": {
3455
+ "$defs": {
3456
+ "DrawingExpectation": {
3457
+ "additionalProperties": false,
3458
+ "properties": {
3459
+ "band_hash": {
3460
+ "anyOf": [
3461
+ {
3462
+ "pattern": "^[a-f0-9]{64}$",
3463
+ "type": "string"
3464
+ },
3465
+ {
3466
+ "type": "null"
3467
+ }
3468
+ ],
3469
+ "default": null,
3470
+ "title": "Band Hash"
3471
+ },
3472
+ "bar_count": {
3473
+ "anyOf": [
3474
+ {
3475
+ "maximum": 4000,
3476
+ "minimum": 1,
3477
+ "type": "integer"
3478
+ },
3479
+ {
3480
+ "type": "null"
3481
+ }
3482
+ ],
3483
+ "default": null,
3484
+ "title": "Bar Count"
3485
+ },
3486
+ "color": {
3487
+ "anyOf": [
3488
+ {
3489
+ "enum": [
3490
+ "info",
3491
+ "success",
3492
+ "warning",
3493
+ "danger",
3494
+ "blue",
3495
+ "green",
3496
+ "orange",
3497
+ "red",
3498
+ "蓝色",
3499
+ "绿色",
3500
+ "橙色",
3501
+ "红色"
3502
+ ],
3503
+ "type": "string"
3504
+ },
3505
+ {
3506
+ "type": "null"
3507
+ }
3508
+ ],
3509
+ "default": null,
3510
+ "description": "用户原始指定颜色,可直接填绿色、红色等,核对时标准化",
3511
+ "title": "Color"
3512
+ },
3513
+ "end_price": {
3514
+ "anyOf": [
3515
+ {
3516
+ "exclusiveMinimum": 0,
3517
+ "type": "number"
3518
+ },
3519
+ {
3520
+ "type": "null"
3521
+ }
3522
+ ],
3523
+ "default": null,
3524
+ "title": "End Price"
3525
+ },
3526
+ "end_time": {
3527
+ "anyOf": [
3528
+ {
3529
+ "type": "string"
3530
+ },
3531
+ {
3532
+ "type": "null"
3533
+ }
3534
+ ],
3535
+ "default": null,
3536
+ "title": "End Time"
3537
+ },
3538
+ "exists": {
3539
+ "default": true,
3540
+ "description": "删除后填 false,并且不传其他期望参数",
3541
+ "title": "Exists",
3542
+ "type": "boolean"
3543
+ },
3544
+ "icon": {
3545
+ "anyOf": [
3546
+ {
3547
+ "enum": [
3548
+ "arrow_up",
3549
+ "arrow_down",
3550
+ "diamond"
3551
+ ],
3552
+ "type": "string"
3553
+ },
3554
+ {
3555
+ "type": "null"
3556
+ }
3557
+ ],
3558
+ "default": null,
3559
+ "title": "Icon"
3560
+ },
3561
+ "id": {
3562
+ "description": "工具返回的稳定图形 ID,不按名称猜测",
3563
+ "maxLength": 128,
3564
+ "minLength": 1,
3565
+ "title": "Id",
3566
+ "type": "string"
3567
+ },
3568
+ "kind": {
3569
+ "enum": [
3570
+ "horizontal_line",
3571
+ "trend_line",
3572
+ "channel",
3573
+ "rectangle",
3574
+ "fibonacci_retracement",
3575
+ "labeled_polyline",
3576
+ "text_annotation",
3577
+ "number_annotation",
3578
+ "icon_annotation",
3579
+ "series_line",
3580
+ "price_band",
3581
+ "price_sticks"
3582
+ ],
3583
+ "title": "Kind",
3584
+ "type": "string"
3585
+ },
3586
+ "lower_price": {
3587
+ "anyOf": [
3588
+ {
3589
+ "exclusiveMinimum": 0,
3590
+ "type": "number"
3591
+ },
3592
+ {
3593
+ "type": "null"
3594
+ }
3595
+ ],
3596
+ "default": null,
3597
+ "title": "Lower Price"
3598
+ },
3599
+ "name": {
3600
+ "anyOf": [
3601
+ {
3602
+ "maxLength": 48,
3603
+ "type": "string"
3604
+ },
3605
+ {
3606
+ "type": "null"
3607
+ }
3608
+ ],
3609
+ "default": null,
3610
+ "description": "用户原始指定的完整名称,不能缩写;空字符串也会核对",
3611
+ "title": "Name"
3612
+ },
3613
+ "parallel_price": {
3614
+ "anyOf": [
3615
+ {
3616
+ "exclusiveMinimum": 0,
3617
+ "type": "number"
3618
+ },
3619
+ {
3620
+ "type": "null"
3621
+ }
3622
+ ],
3623
+ "default": null,
3624
+ "title": "Parallel Price"
3625
+ },
3626
+ "parallel_time": {
3627
+ "anyOf": [
3628
+ {
3629
+ "type": "string"
3630
+ },
3631
+ {
3632
+ "type": "null"
3633
+ }
3634
+ ],
3635
+ "default": null,
3636
+ "title": "Parallel Time"
3637
+ },
3638
+ "point_label": {
3639
+ "anyOf": [
3640
+ {
3641
+ "maxLength": 16,
3642
+ "minLength": 1,
3643
+ "type": "string"
3644
+ },
3645
+ {
3646
+ "type": "null"
3647
+ }
3648
+ ],
3649
+ "default": null,
3650
+ "title": "Point Label"
3651
+ },
3652
+ "point_price": {
3653
+ "anyOf": [
3654
+ {
3655
+ "exclusiveMinimum": 0,
3656
+ "type": "number"
3657
+ },
3658
+ {
3659
+ "type": "null"
3660
+ }
3661
+ ],
3662
+ "default": null,
3663
+ "title": "Point Price"
3664
+ },
3665
+ "point_time": {
3666
+ "anyOf": [
3667
+ {
3668
+ "type": "string"
3669
+ },
3670
+ {
3671
+ "type": "null"
3672
+ }
3673
+ ],
3674
+ "default": null,
3675
+ "title": "Point Time"
3676
+ },
3677
+ "price": {
3678
+ "anyOf": [
3679
+ {
3680
+ "exclusiveMinimum": 0,
3681
+ "type": "number"
3682
+ },
3683
+ {
3684
+ "type": "null"
3685
+ }
3686
+ ],
3687
+ "default": null,
3688
+ "title": "Price"
3689
+ },
3690
+ "ratios": {
3691
+ "anyOf": [
3692
+ {
3693
+ "items": {
3694
+ "maximum": 1,
3695
+ "minimum": 0,
3696
+ "type": "number"
3697
+ },
3698
+ "maxItems": 16,
3699
+ "minItems": 1,
3700
+ "type": "array"
3701
+ },
3702
+ {
3703
+ "type": "null"
3704
+ }
3705
+ ],
3706
+ "default": null,
3707
+ "title": "Ratios"
3708
+ },
3709
+ "series_hash": {
3710
+ "anyOf": [
3711
+ {
3712
+ "pattern": "^[a-f0-9]{64}$",
3713
+ "type": "string"
3714
+ },
3715
+ {
3716
+ "type": "null"
3717
+ }
3718
+ ],
3719
+ "default": null,
3720
+ "title": "Series Hash"
3721
+ },
3722
+ "show_fill": {
3723
+ "anyOf": [
3724
+ {
3725
+ "type": "boolean"
3726
+ },
3727
+ {
3728
+ "type": "null"
3729
+ }
3730
+ ],
3731
+ "default": null,
3732
+ "title": "Show Fill"
3733
+ },
3734
+ "show_midline": {
3735
+ "anyOf": [
3736
+ {
3737
+ "type": "boolean"
3738
+ },
3739
+ {
3740
+ "type": "null"
3741
+ }
3742
+ ],
3743
+ "default": null,
3744
+ "title": "Show Midline"
3745
+ },
3746
+ "start_price": {
3747
+ "anyOf": [
3748
+ {
3749
+ "exclusiveMinimum": 0,
3750
+ "type": "number"
3751
+ },
3752
+ {
3753
+ "type": "null"
3754
+ }
3755
+ ],
3756
+ "default": null,
3757
+ "title": "Start Price"
3758
+ },
3759
+ "start_time": {
3760
+ "anyOf": [
3761
+ {
3762
+ "type": "string"
3763
+ },
3764
+ {
3765
+ "type": "null"
3766
+ }
3767
+ ],
3768
+ "default": null,
3769
+ "title": "Start Time"
3770
+ },
3771
+ "sticks_hash": {
3772
+ "anyOf": [
3773
+ {
3774
+ "pattern": "^[a-f0-9]{64}$",
3775
+ "type": "string"
3776
+ },
3777
+ {
3778
+ "type": "null"
3779
+ }
3780
+ ],
3781
+ "default": null,
3782
+ "title": "Sticks Hash"
3783
+ },
3784
+ "text": {
3785
+ "anyOf": [
3786
+ {
3787
+ "maxLength": 120,
3788
+ "type": "string"
3789
+ },
3790
+ {
3791
+ "type": "null"
3792
+ }
3793
+ ],
3794
+ "default": null,
3795
+ "title": "Text"
3796
+ },
3797
+ "time": {
3798
+ "anyOf": [
3799
+ {
3800
+ "type": "string"
3801
+ },
3802
+ {
3803
+ "type": "null"
3804
+ }
3805
+ ],
3806
+ "default": null,
3807
+ "title": "Time"
3808
+ },
3809
+ "upper_price": {
3810
+ "anyOf": [
3811
+ {
3812
+ "exclusiveMinimum": 0,
3813
+ "type": "number"
3814
+ },
3815
+ {
3816
+ "type": "null"
3817
+ }
3818
+ ],
3819
+ "default": null,
3820
+ "title": "Upper Price"
3821
+ },
3822
+ "value": {
3823
+ "anyOf": [
3824
+ {
3825
+ "type": "number"
3826
+ },
3827
+ {
3828
+ "type": "null"
3829
+ }
3830
+ ],
3831
+ "default": null,
3832
+ "title": "Value"
3833
+ }
3834
+ },
3835
+ "required": [
3836
+ "kind",
3837
+ "id"
3838
+ ],
3839
+ "title": "DrawingExpectation",
3840
+ "type": "object"
3841
+ }
3842
+ },
3843
+ "properties": {
3844
+ "chart_session": {
3845
+ "title": "Chart Session",
3846
+ "type": "string"
3847
+ },
3848
+ "expectations": {
3849
+ "description": "按原始要求或用户确认的方案及覆盖项独立填写期望,不抄修改结果;核对名称/颜色/锚点,删除填exists=false",
3850
+ "items": {
3851
+ "$ref": "#/$defs/DrawingExpectation"
3852
+ },
3853
+ "maxItems": 180,
3854
+ "minItems": 1,
3855
+ "title": "Expectations",
3856
+ "type": "array"
3857
+ },
3858
+ "symbol": {
3859
+ "title": "Symbol",
3860
+ "type": "string"
3861
+ }
3862
+ },
3863
+ "required": [
3864
+ "chart_session",
3865
+ "symbol",
3866
+ "expectations"
3867
+ ],
3868
+ "title": "verify_chart_drawingsArguments",
3869
+ "type": "object"
3870
+ },
3871
+ "name": "verify_chart_drawings"
3872
+ }
3873
+ ],
3874
+ "version": "0.6.11"
3875
+ }