Skip to content

floorp_get_content returns unbounded HTML, causing context overflow in LLMs #2

@johnzfitch

Description

@johnzfitch

Problem

The floorp_get_content tool returns the entire HTML of a page without any size limits. Modern web pages can easily exceed 50-100KB of HTML, which:

  • Quickly exhausts LLM context windows
  • Makes the tool impractical for real-world use
  • Can cause billing issues on usage-limited accounts

Example

A simple Kagi search page returned ~25,000 tokens of HTML, immediately filling context.

Environment

  • floorp-mcp-server via npx
  • Claude Code CLI

Suggestions

There are many ways to try and solve this problem. I'm going to try some stuff out on my end and hope you will too. I'll report back whatever results I have.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions