Test Lambda tool
POST/v2/tools/:tool_id/test
Execute a Lambda tool with test inputs to verify it works correctly.
This endpoint allows users to test their functions before using them with agents.
Optionally supply a test_context to provide stand-in agent metadata, secrets, and session metadata that the $refs in the tool's stored tool_configurations resolve against.
The function is executed in a secure sandbox environment with the same constraints as production.
Request
Responses
- 200
- 400
- 403
- 404
- 500
Test execution completed successfully.
Invalid test input or tool configuration.
Permissions do not allow testing this tool.
Tool not found or not a Lambda tool.
Execution failed due to execution errors or resource limits.