Update asset
update_assetChange a workspace asset: rename it, or fix a font's family, weight or style (e.g. a variable font listed at weight 400: fontWeight "100 900", so font-bold and font-extrabold use the file). Every file of the workspace uses the change. A workspace admin or the asset's uploader only. The asset is looked up in fileId's workspace when given, else workspace, else the default workspace.
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": {
"asset": "<asset>"
},
"name": "update_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New file name, shown in list_assets and Settings. | |
| asset | Yes | The asset's id (list_assets) or its /api/assets/… URL. | |
| fileId | No | The file the assets are for: its workspace's (a file shows the fonts and images of its own workspace). | |
| fontStyle | No | Fonts: normal or italic. | |
| workspace | No | The workspace whose assets to use: its id or name (whoami lists them). Default: fileId's workspace, else the default workspace. | |
| fontFamily | No | Fonts: the family used by font-['Family'] (spaces as _ in the class). | |
| fontWeight | No | Fonts: "400", or the weight range of a variable font, "100 900". |