Test Lambda tool without creation
POST/v2/tools/test
Tests a Lambda tool without creating it.
Use this to:
- Validate Python code syntax and security constraints
- Discover input/output schemas from type annotations
- Test execution with sample input
- Verify schema compatibility
- Exercise the lambda tool's
tool_configurationswith a stand-intest_contextthat supplies the agent metadata, secrets, and session metadata its$refs resolve against
The function runs in the same secure sandbox environment as production tools.
Request
Responses
- 200
- 400
- 403
The validation and execution results.
Invalid request or malformed code.
Permissions do not allow testing tools.