save_strategy
Register a trading strategy by providing its JSON definition. Validates and saves the strategy, enabling subsequent backtesting and optimization.
Instructions
Register a strategy from its JSON body (not a file path; agent-friendly).
Pass the full strategy-definition JSON as a string; it is validated as a JSON object
and written to a temp file before `strategy save`. Returns {output}. A registered
strategy is the prerequisite for run_backtest/run_optimize. Reports progress to
capable clients; has an execution timeout.
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": {
"json_body": "<json_body>"
},
"name": "save_strategy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json_body | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | Yes | ||
| error | Yes |