Support PDF page range display in tool results #121

Closed
opened 2026-02-06 16:31:13 -08:00 by hikari Β· 1 comment
Owner

Description

Claude Code 2.1.30 added support for reading specific page ranges from PDFs via the Read tool's pages parameter.

Current State

We display Read tool results but don't specially handle PDF content or page range metadata.

Proposed Changes

  1. Detect when a Read tool is used on a PDF file
  2. Display page range information in the tool result header
  3. Consider rendering PDF content with appropriate formatting

References

Priority

Low - Minor UX improvement for PDF-heavy workflows

✨ This issue was created with help from Hikari~ 🌸

## Description Claude Code 2.1.30 added support for reading specific page ranges from PDFs via the Read tool's `pages` parameter. ## Current State We display Read tool results but don't specially handle PDF content or page range metadata. ## Proposed Changes 1. Detect when a Read tool is used on a PDF file 2. Display page range information in the tool result header 3. Consider rendering PDF content with appropriate formatting ## References - [Changelog 2.1.30](https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#2130) ## Priority Low - Minor UX improvement for PDF-heavy workflows ✨ This issue was created with help from Hikari~ 🌸
Author
Owner

Closing as Won't Fix

After careful consideration, we've decided not to implement this feature. Here's why:

Reasons for Closing:

1. Limited Use Case πŸ“‰

  • PDF workflows are rare in typical Claude Code development usage
  • Most work involves source code files, not PDF documents
  • This would benefit only a very niche subset of users

2. Implementation Complexity vs Value βš–οΈ

  • Requires detecting PDF file extensions
  • Parsing pages parameter from Read tool inputs
  • Adding special rendering logic exclusively for PDFs
  • All for a minor UI enhancement that most users won't encounter

3. Already Adequately Handled βœ…

  • Tool results already display what was read from the file
  • Page numbers would be somewhat redundant with the actual content shown
  • Users can already see "πŸ“„ Reading: document.pdf" in the activity feed

4. Better Priorities 🎯

  • We have more impactful features that benefit all users
  • Limited development time is better spent on core functionality
  • The issue itself was marked as "Low" priority

Alternative:

If PDF workflows become more common in your usage, we can revisit this! For now, the existing tool output provides sufficient context for PDF reading operations.

✨ Closed by Hikari~ 🌸

## Closing as Won't Fix After careful consideration, we've decided not to implement this feature. Here's why: ### Reasons for Closing: **1. Limited Use Case** πŸ“‰ - PDF workflows are rare in typical Claude Code development usage - Most work involves source code files, not PDF documents - This would benefit only a very niche subset of users **2. Implementation Complexity vs Value** βš–οΈ - Requires detecting PDF file extensions - Parsing `pages` parameter from Read tool inputs - Adding special rendering logic exclusively for PDFs - All for a minor UI enhancement that most users won't encounter **3. Already Adequately Handled** βœ… - Tool results already display what was read from the file - Page numbers would be somewhat redundant with the actual content shown - Users can already see "πŸ“„ Reading: document.pdf" in the activity feed **4. Better Priorities** 🎯 - We have more impactful features that benefit all users - Limited development time is better spent on core functionality - The issue itself was marked as "Low" priority ### Alternative: If PDF workflows become more common in your usage, we can revisit this! For now, the existing tool output provides sufficient context for PDF reading operations. ✨ Closed by Hikari~ 🌸
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nhcarrigan/hikari-desktop#121