{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/opt\/scripts\/pipeline\/db.py",
"offset": 190,
"limit": 15
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/opt\/scripts\/pipeline\/db.py",
"content": " (level, message, context),\n )\n log_conn.commit()\n cursor.close()\n log_conn.close()\n except Exception:\n # Logging should never break the pipeline\n pass\n\n # Prompts\n def get_prompt(self, name, version=None):\n \"\"\"Get a prompt by name (optionally specific version).\"\"\"\n if version:\n cursor = self.execute(\"SELECT content FROM prompts WHERE name = %s AND version = %s\", (name, version))\n else:",
"numLines": 15,
"startLine": 190,
"totalLines": 218
}
}
}