browse_s3_logs
Navigate S3 log directories to locate and access logs for troubleshooting EMR Serverless jobs and Airflow pipelines across development, test, and production environments.
Instructions
Browse the S3 log directory structure. Navigate into folders to find logs.
Args: prefix: S3 prefix/path to browse (default: EMR_LOG_PREFIX from config, e.g. 'spark-logs/'). Use the output to navigate deeper, e.g. 'spark-logs/ttdgeo_metadata_SE/'. bucket: S3 bucket (default from config). max_items: Max items to show (default 50). env: Target environment — 'dev', 'uat', 'test', or 'prod'. IMPORTANT: Do NOT guess or default. Ask the user which environment if not specified.
Returns a directory listing of the S3 prefix showing folders and files.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browse_s3_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | No | ||
| bucket | No | ||
| max_items | No | ||
| env | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |