Test Lambda tool
POST/v2/tools/:tool_id/test
Tests an existing Lambda tool by executing it with test inputs.
Use this to verify a function works correctly before agents use it.
Optionally supply a test_context with stand-in agent metadata, secrets, and session metadata. The $refs in the tool's stored tool_configurations resolve against these values.
The function runs in a secure sandbox environment with the same constraints as production.
Request
Responses
- 200
- 400
- 403
- 404
- 500
The test execution results.
Invalid test input or tool configuration.
Permissions do not allow testing this tool.
Tool not found or not a Lambda tool.
The execution failed due to errors or resource limits.