Download resource
download_resourceGet the actual files of a Kromatic template or worksheet, such as the Pivot or Persevere template, when the user wants to fill it in or share it. Pass the item's id or the download's slug.
Needs a free Kromatic account. Just call it: if the user is not signed in, their AI app shows the Kromatic sign-in screen, where they can create the account, and then this same call goes through. Do not refuse or ask them to sign in first. If the app cannot show a sign-in screen, the call returns a "Sign in to use download_resource" error; tell the user this step needs a free Kromatic account. It changes nothing for the user; it only issues links. Returns each file's label, type, an is_example flag and a url. A paid file comes back with no url, access "requires_purchase" and the page_url where it is sold on kromatic.com.
Next: give the links to the user straight away. They stop working at expires_at. Each call issues fresh links and records them as issued; nothing else changes.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "download_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The template's id from list_resources, search_resources or read_resource. A Download File id selects one file. | |
| slug | No | Alternative to id: the download's slug, e.g. pivot-or-persevere-template. |