Script tool templates
Start from a reusable script, configure your credentials, and publish a tool for your organization
Script tool templates give you a starting point for a script tool. Choose a template from the catalog, create your own tool, and configure it for your organization. You can review and change its TypeScript in the studio before you publish it.
Deploying a template means publishing and enabling the configured tool. Creating a tool from a template leaves it disabled, so agents cannot call it while you set it up.
Before you start
- Sign in as an Org Admin or Manager. See Permissions.
- Read the template's description and setup guide. Some templates need additional code settings or a designated account before they can run.
- Have access to the vendor account and credentials the template requires. Store secrets in the Credential Vault.
Choose a template guide
Read one employee's monthly allowance, its source, and informational spend.
Claude Enterprise spend fulfillmentApply an approved monthly cap and remove its override for one designated member.
Create and deploy a tool
Find the template
Open Tools in the dashboard and click Script templates. Search by name, open a template, and review its description, code, and required configuration keys.
The catalog includes templates from Risotto and published templates from your organization. An entry marked Custom belongs to your organization.
Create your tool
Click Use template. Enter a name and, optionally, a description and department, then create the tool. Use a name that describes the task; agents use the name and description to decide when to call it.
The studio opens with the template's code saved as a draft. This is your own copy: editing the tool does not change the catalog template or another tool created from it.
Select your vault credentials
Open Tools, select the new tool, and click Edit. The Tool Configuration card lists the secret fields the script needs, such as
ANTHROPIC_ADMIN_API_KEY.For each field, click Choose a vault credential to select an existing credential, or Add a vault credential to create one. Use the credential type, vendor permissions, and allowed hosts from the template's guide. A department credential must be usable by the department that owns the tool.
Save the tool configuration. Put keys only in the vault credential's value field. The code editor and studio chat are not places to enter secrets.
See Reference a credential for the vault picker and Department credentials for allowed hosts and ownership.
Review and test the draft
Return to the tool and choose Open studio. Click Code to review its inputs, steps, and HTTP domains. Make the changes required by the template's guide, then click Save draft. Resolve any code errors shown in the editor.
Follow the template's test procedure. For a read-only template, click Test, enter one known account's inputs, and check the result and step trace. For a template that changes vendor data, use only the test account and procedure specified in its guide.
Publish the saved draft
Click Publish and confirm. Publishing makes the saved code the version that future runs use. It does not enable a new tool.
Review the tool's approval and verification settings. A read-only lookup may be suitable for use before approval. A tool that changes access or vendor settings needs the controls described in its guide.
Enable it for the intended workflow
Turn on Enabled on the tool's page. The tool can now be selected by agents and referenced in runbooks.
For a tool that fulfills access, follow Script tool on an access rule. The same script must handle grant and remove. Set any required fixed values as bound arguments on the rule, and configure the rule's approval policy. The tool's own approval requirement is not enforced when an access rule runs it.
Follow the template's account, approval, and cleanup requirements when adding it to a workflow.
Maintain a tool created from a template
Changes to a catalog template do not update tools you already created. Review any changes you need in your tool's draft, test them, and publish that draft when it is ready. The current published version keeps running while you edit.
Keep the tool's Run history available when you troubleshoot. Each run shows its steps, result, and failures. Version history records publications and lets you restore an earlier version. See Run history and version history.
Rotate a key from the Credential Vault. Tools that reference it use the new value on their next run; you do not need to publish the script again.
Disabling a tool stops future calls. It does not undo actions the tool already completed. If the tool removes access for active grants, finish the removal procedure before disabling it.
Something wrong or missing? Report an issue · View as Markdown