Save the model
save_modelReplace a project's model with text, keeping everything else (its
metrics file, dashboards, settings and canvas).
The model is checked first; one with errors is not saved, and the
errors come back instead. DBML is saved as the model document it
converts to. A `run` block in the model sets the project's seed, rows a
table, rows per table, as-of day and locale (the reply says which it
took); what it leaves out stays as the project has it. Says how the
tables changed, and whether the project's
metrics file still reads against the new model. Needs a key with save
access.
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>",
"text": "<text>"
},
"name": "save_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |