Create a new immutable version of an existing tool. Use this to update the schema or to attach an auto-execution body. The new version is assigned the next sequential version number. Pass aDocumentation Index
Fetch the complete documentation index at: https://docs.promptlayer.com/llms.txt
Use this file to discover all available pages before exploring further.
commit_message to leave an audit-trail note.
If you include execution, PromptLayer will run the body in a sandbox whenever a prompt referencing this version is invoked. The code field is the function body only. The signature is generated server-side.Tool ID (numeric) or name
Tool definition in OpenAI function-calling format
Optional sandbox-executable body. When set, PromptLayer auto-runs the body between LLM turns whenever a prompt uses this version. See Auto Tool Execution.
Commit message for the new version