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. 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: use it before patch_file/replace_file to get the editHandle, and use it again after a successful edit to read back the final saved code before final-answering. After patch_file or replace_file returns a new revisionId, use that returned revisionId for readback or omit ids for the current attached strategy; do not re-read the original/base revisionId when verifying the edit. If that readback is for a first-build where the user disabled automatic backtests, do not final-answer immediately after readback; update the visible plan so validation is waiting or blocked on the user's explicit backtest request. 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.
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. |