Skip to content

Bug: read_note pagination parameters have no effect #693

@bm-clawd

Description

@bm-clawd

Bug: read_note pagination parameters have no effect

Description

The read_note MCP tool accepts page and page_size parameters, but they have no effect on the output. The tool always returns the full note content regardless of pagination settings.

This causes issues when:

  • Large notes (>50KB) exceed Claude Code's inline display limit
  • Users expect to chunk large notes into readable segments
  • The tool help text suggests pagination should work

Reproduction

# Test with MEMORY.md (33,928 chars)
bm tool read-note "claw/memory" --page 1 --page-size 1
bm tool read-note "claw/memory" --page 1 --page-size 100
bm tool read-note "claw/memory" --page 1 --page-size 5000

All three commands return identical output: 33,928 characters.

Expected Behavior

  • page-size 1 should return a small chunk (e.g., first N lines or chars)
  • page-size 100 should return a larger chunk
  • Subsequent pages (--page 2, etc.) should return different content

Actual Behavior

All pagination parameters are ignored. Full note content is always returned.

Impact

  • Users with large notes (87KB reported in Discord) cannot read them via MCP
  • Claude Code truncates to 2KB preview when tool output exceeds display limits
  • Workarounds required: split notes, use search_notes, or filesystem access

Environment

  • BM CLI version: (latest from uv)
  • Tested via: bm tool read-note CLI command
  • Project: openclaw-basics-mbp-lan

CLI Help Text (shows pagination params)

--page                       INTEGER  Page number for pagination [default: 1]
--page-size                  INTEGER  Number of results per page [default: 10]

The help text implies pagination should work, but it doesn't.

Suggested Fix

Either:

  1. Implement chunked reading for read_note (honor page_size param)
  2. Remove pagination params from the tool schema if not supported
  3. Document that pagination only applies to search_notes, not read_note

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions