Create a new strategy workspace
create_strategyCreates a new strategy workspace with main.py and requirements.txt. The starter files are neutral boilerplate only; they do not encode customer-specific strategy logic or fake validation trades. After creation, use the returned files manifest instead of rediscovering starter paths. Use list_files for missing or stale discovery. Use replace_file, patch_file, and create_file to implement the strategy; each save result confirms what was saved and returns the revisionId to validate. When this user has not linked data that some asset class needs for a backtest, the result says so in backtestData. Before writing code, load BotSpot's free strategy-building skills: call skills (action=get, name=lumibot-strategy-building) and follow it, including existing plan progress and Rules; do not replace the plan merely to record workspace creation. For the first real main.py implementation after neutral starter creation, use replace_file with the main.py editHandle from the returned files manifest; no get_file is needed first. This is the default first-build path for BotSpot strategy creation after the user clearly asks to build/create/make/generate/implement/code a strategy, or asks to turn prior trading or competition rules into a clean/tighter/easier-for-agent prompt in this product flow. Do not use this tool when the current conversation/context already has an attached, current, open, or saved strategy/revision and the user asks to update, edit, fix, refine, change, or make that strategy buy/sell differently. For attached/current strategy edits, use get_file plus patch_file or replace_file on the existing revision, then read back the saved revision. Do not use this tool for advice, critique, feedback, risk assessment, review, planning, or 'what do you think' turns.
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": {
"name": "<name>"
},
"name": "create_strategy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Required human-readable strategy title. Use natural words or title case, such as "Competition Risk Trader". Do not use slug-style, snake_case, kebab-case, file names, or lowercase underscore names such as competition_prompt_cleanup. | |
| description | No | Optional notes for the initial revision |