Solutions
Why can't Cursor read my PDF or Word file?
Updated
Because the file is binary and the path from attachment to model is unreliable: Cursor forum reports from 2026 describe .docx and PDF attachments read as plain text and corrupted, and cloud agents that never receive an uploaded PDF or CSV. The dependable route is to give the agent text. In Forkbench a document kept in Files is converted to Markdown on your Mac, one heading per page, sheet or slide, and Cursor's agent reads it with read_file in a terminal.
You attach a PDF or a .docx to the agent and the answer is about nothing in it. Sometimes the agent tries to extract the text with a script and reads it two or three times over; sometimes, in a cloud agent, the file never arrives at all.
Converting once also saves the tokens the workaround burns: an agent extracting a binary file itself tends to read the raw file, then its script's output, then the result again. Text is read once, a slice at a time. The document stays out of the project folder, so it is not indexed, not committed and not visible to every agent that opens the repository, and the agent receives it marked as file content, so a line inside it cannot pose as an instruction.
How it works
- 1Run Cursor CLI in a Forkbench terminal. It reads Files with read_file where Forkbench has set up its tools, and with `fb file read` from the shell everywhere else.
- 2Add the document to Files and expose it to the thread: hold Option and drop it on the terminal, which does both and pastes its name.
- 3Ask the agent to read it by name. read_file returns Markdown, one heading per page, sheet or slide, 256 KB at a time, so a long document is paged rather than refused.
- 4Keep the original. get_file still saves the real file to disk when the agent has to work on it with a library.
Straight about the guarantee: This page covers Cursor's terminal agent, Cursor CLI, which is the one that runs inside Forkbench. The editor's attachment handling is Cursor's to fix, and the forum reports cited were open when this was written on 25 November 2026.
Frequently asked
Does this help inside the Cursor editor?
Not directly. Forkbench runs terminal agents; in the editor you can still paste the Markdown that
fb file readprints.
Related: Claude Code says "PDF too large", Giving an agent a document without putting it in the repo