Describe the bug
If you use op.read('op://vault/item/text_file') to read a file that is attached to an item, it retrieves the file first line only. It doesn't contain the rest of the document. If I use op read op://vault/item/text_file in Terminal, it pulls the full text file.
To Reproduce
Steps to reproduce the behavior:
In Python environment:
- Create an item in 1Password that has a text file named "text.txt" attached to it. (Not a separate document item)
- Create python code to pull the file via op.read(secret_reference_to_file)
- The variable returned only includes the first line of the file, not the entire contents.
In terminal:
- Enter commend op read secret_reference_to_file
- The full contents of the text file are displayed in the terminal
Expected behavior
The returned variable should include the entire file, not just the first line
Screenshots
In the screenshot, I have included:
- Top: Terminal showing the output of the op read command.
- Left: The Python code with the console output showing the output of the op.read() command.
- Middle-right: The text as it was uploaded to 1Password.
- Bottom-right: The item as it appears in 1Password

Desktop (please complete the following information):
- OS: macOS 15.3
- Python 3.12
- 1Password
Additional context
Add any other context about the problem here.