Fetch a strategy revision file
get_fileReturns one file from any saved strategy revision owned by the authenticated user, including an opaque editHandle for safe edits. Call list_files before reading optional files such as rules.json or helpers whose presence is unknown; read only paths returned for that revision. A known entrypoint such as main.py can be read directly. Missing optional Rules do not block diagnosis and do not require creating a file. For the current attached/open strategy, omit strategyId and revisionId and pass only path so the server uses the latest active revision from conversation state, falling back to the MCP token, instead of making you copy UUIDs. Use explicit strategyId/revisionId only when the user named or identified another owned strategy. If the user says 'the one entitled X', 'apply this to X also', names a different bot/strategy, or says not to change the open strategy, resolve that named target with list_strategies/list_revisions first and pass its strategyId/revisionId here. Do not reuse the open/current page revisionId for a different named strategy; after list_strategies finds the target, call list_revisions for that named strategy and use the target revisionId returned there. For existing-strategy fixes or updates, this is the required bridge from inspection to action: read the file once to get its editHandle, then edit with replace_file (whole file, complete preserved content) or patch_file (exact copied text). A save result confirms the saved content (contentHash) and returns the next editHandle and revisionId; do not call get_file again to re-read it, and never reuse the original/base revisionId after an edit. Copy or apply requests: read both the source and the target, copy only the behavior the user asked for, and keep the target's own symbol, name and account. If the user said to stop using a value or source, a fallback to it still counts as using it. When the user disabled automatic backtests, a first build ends by updating the visible plan to wait on the user's backtest request, not by start_backtest or complete_plan. For plan-driven first-build work, make the visible implementation item in_progress with update_plan_item before using file tools so the user sees the current plan step while file work runs. For first-build strategy work, call create_strategy first. When create_strategy attaches the workspace through conversationUpdate, omit strategyId and revisionId: get_file needs only path and list_files needs no selectors. If creation returned no conversationUpdate, copy the exact returned strategyId/revisionId pair.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| revisionId | No | Revision id. Omit only for the current attached/open strategy when the MCP token is scoped to an active strategy revision. | |
| strategyId | No | Strategy id. Omit only for the current attached/open strategy when the MCP token is scoped to an active strategy revision. |