Duplicate Tool
Copy the published snapshot or current draft of a visible tool into a new organisation-owned tool. Curated capability types cannot be duplicated. Returns 201 with the new tool.
Authorizations
Your SLNG consumer API key.
Path Parameters
The tool UUID. Curated tools are visible but read-only, and a tool owned by another organisation returns 404.
Response
A new organisation tool copied from the source tool's published snapshot, or its draft if it was never published.
A tool and its current draft state, including config, publish gates, and version info.
Vault secret names this tool is allowed to read at runtime.
Pinned Python package dependencies installed for this tool.
curated tools are built in and maintained by SLNG; org tools were created by your organisation.
curated, org Gate set is selected by tool_type (V2): data → static + green_run; code also reports config_valid; ctx-bound → config_valid ONLY.
code, api_request, end_call, voicemail_detection, transfer_call, send_sms, current_datetime, user_phone_number Configuration for a Custom Code tool. Custom code runs sandboxed with no internet access.
- CodeConfig
- ApiRequestConfig
- EndCallConfig
- VoicemailDetectionConfig
- TransferCallConfig
- SendSmsConfig
- CurrentDatetimeConfig
- UserPhoneNumberConfig
Current default values for the tool arguments, keyed by argument name. Each value is a literal (string, number, or boolean) or a Vault variable reference using the {{$NAME}} syntax. Applied when a caller does not supply that argument.
Current Python source for the tool, populated for Custom Code tools only. Custom Code runs sandboxed with no internet access.