Create or read a strategy share link
strategy_share_linkaction="create" creates or refreshes a private bearer share link for a strategy using its stored access permissions, without an extra sharing password. A new link shares backtest results by default. action="get" reads its current sharing status without creating one. Explicit regeneration invalidates the previous link; do not repeat it as a safe retry.
Set "action" to choose the operation. Only send the fields listed for that action.
action="create": Create a private share link for a strategy
No other fields required. Creates a private bearer link for one strategy; anyone who receives or forwards it can access the granted capabilities until it is revoked. A new link shares the owner's backtest results by default (allowPerformanceView: false turns that off); an existing link keeps its stored backtest setting. Code access and cloning are denied unless explicitly enabled. Links use the secret URL and stored access permissions, never an extra password. For public marketplace listing, use publish_to_marketplace instead.
action="get": Get sharing status for a strategy
No other fields required. Returns the current sharing status for a strategy — whether it has an active private share link, when it was last shared, the share URL if available, and sharing settings (code view, clone permissions). Also reports marketplace listing status. Does NOT create a share if none exists — use strategy_share_link(action="create") to create one.
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": {
"action": "<action>"
},
"name": "strategy_share_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Which operation to run: "create", "get". See the tool description for each one. | |
| accountId | No | action="create": Optional account used only as this strategy publication data source | action="get": Optional selected performance account Used with action="create", action="get". | |
| allowClone | No | Can viewers clone/fork the strategy? Default false Used with action="create". | |
| strategyId | No | The Strategy entity ID Used with action="create", action="get". | |
| aiStrategyId | No | action="create": The AiStrategy entity ID (alternative to strategyId) | action="get": The AiStrategy entity ID Used with action="create", action="get". | |
| allowCodeView | No | Can viewers see the strategy code? Default false Used with action="create". | |
| forceRegenerate | No | Generate a new token even if one exists. Default false Used with action="create". | |
| allowPerformanceView | No | Can viewers see the owner's backtest results? Default true for a new link; an existing link keeps its setting. Used with action="create". |