import_data_file
Import an existing OctoBot-format historical data file to make it available for analysis, skipping the need to collect data from an exchange.
Instructions
Upload an existing OctoBot-format historical data file without collecting it via an exchange.
Not confirm-gated (ADR-0003/FR-26): creates new state, destroys
nothing. Maps to POST /data_collector?action_type=import_data_file
(multipart file field, mirroring create_profile(mode="import_file")'s
existing pattern exactly: base64-decode, then a multipart upload).
A confirmed OctoBot-side limitation, not a bug in this tool: this
route ALWAYS responds HTTP 200 with the full re-rendered
/data_collector page, on both a genuinely saved file and a silently
rejected one (confirmed live this session with garbage bytes -- no
file appeared in list_data_files() afterward, and the 200 response
body carried no inspectable error text anywhere) -- the same
invisible-at-the-HTTP-level outcome
octobot_mcp.tools.profiles._create_profile_import_file already
documents for create_profile(mode="import_file"). This tool
therefore determines the outcome via a before/after list_data_files()
diff, exactly like that tool does for profiles.
Output: {"filename": str, "imported": true, "message": str}.
Errors: DataFileImportFailedError if file_base64 isn't valid
base64, or if no new file appears in list_data_files() after the
upload (OctoBot silently rejected it).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| file_base64 | Yes |