Replace a script
replace_scriptReplace every block of a project's script. Whole-script replace: blocks you leave out are deleted, and block ids change. The project must be inactive. To change one block on a live script, use update_block. Read the subo://guide/authoring resource before writing blocks: block type names, section names and the piping rules are not guessable. Its §0 routes on the kind of project (prediction, quiz, form...) to the module to read first, such as subo://guide/kinds/prediction.
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": {
"project_id": "<project_id>",
"blocks": "<blocks>"
},
"name": "replace_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blocks | Yes | ||
| project_id | Yes | Project id, from list_projects or create_project. |