Already have a tool defined inline in a prompt? You don’t need to recreate it in the registry. Save it directly with one click.Documentation Index
Fetch the complete documentation index at: https://docs.promptlayer.com/llms.txt
Use this file to discover all available pages before exploring further.
How It Works
- Open a prompt in the Playground that has an inline function tool
- Click Save as… on the tool in the functions list
- Choose a name and folder location
- Click Save

When to Use This
Prototyping → Production workflow: You’re iterating on a tool schema in the Playground — tweaking parameters, testing with the LLM, getting it right. Once it works, save it to the registry so other prompts can reuse it. Migrating existing prompts: You have 10 prompts that each define the sameget_weather tool inline. Open one, save its tool to the registry, then update the other 9 to use the registry reference instead of their inline copies. Now you have one source of truth.
What Happens After Saving
- A new tool is created in the registry with version 1
- The tool definition is frozen as the first version
- Your prompt’s inline tool is replaced with a registry reference
- The prompt now resolves the tool from the registry at runtime

