affinity_save_script_to_library
Save a completed JavaScript script to Affinity's script library so you can reuse it across design document workflows.
Instructions
Save a completed JavaScript script to Affinity's script library.
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": {
"title": "<title>",
"description": "<description>",
"code": "<code>"
},
"name": "affinity_save_script_to_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| title | Yes | ||
| description | Yes |