aws_lambda_invoke
Execute AWS Lambda functions directly or validate permissions in read-only mode using dry runs. Supports synchronous and asynchronous invocation with custom JSON payloads.
Instructions
Invoke a Lambda function. In --readonly mode, uses InvocationType='DryRun' to validate permissions without executing the function.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"function_name": "<function_name>"
},
"name": "aws_lambda_invoke"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | AWS profile name from ~/.aws/config (e.g., 'default', 'production') | |
| region | No | AWS region override (e.g., 'us-east-1', 'sa-east-1') | |
| function_name | Yes | Function name or ARN | |
| payload | No | JSON payload to send to the function | |
| invocation_type | No | Invocation type: 'RequestResponse' (sync) or 'Event' (async). Default: RequestResponse |