{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "source \/var\/www\/dev.campus.systemische-tools.de\/.env && export DB_PASSWORD=\"$MARIADB_ROOT_PASSWORD\" && .\/venv\/bin\/python -c \"\nfrom db import db\ndb.connect()\n\n# Hole eine kleinere PDF zum Testen\ncursor = db.execute('''\n SELECT pq.id, pq.file_path \n FROM pipeline_queue pq \n WHERE pq.status = \\\"pending\\\"\n ORDER BY pq.id\n LIMIT 1\n''')\nitem = cursor.fetchone()\ncursor.close()\n\nif item:\n import os\n size = os.path.getsize(item['file_path']) \/ 1024 \/ 1024\n print(f'Teste mit: {item[\\\"file_path\\\"].split(\\\"\/\\\")[-1]}')\n print(f'Größe: {size:.1f} MB')\n print(f'Queue-ID: {item[\\\"id\\\"]}')\n\ndb.disconnect()\n\"\n",
"description": "Get test document info"
}
}
{
"tool_response": {
"stdout": "Teste mit: Booklet_CoachingPsychopathologie_RELAUNCH2026.pdf\nGröße: 2.6 MB\nQueue-ID: 1",
"stderr": "",
"interrupted": false,
"isImage": false
}
}