Skip to content

Filling large amount of text result in timeout #786

Closed

Description

@kth8

Description of the bug

While using this MCP server with my agent, I noticed the fill tool would frequently timeout after 5000ms when typing in large amounts of text.
img
Naturally I asked my agent to implement a workaround. After some trial and error it seems like replacing handle.asLocator().fill with page.keyboard.type() in src/tools/input.ts worked.
!img
Is this something the maintainers would be willing to look at and perhaps implement a more robust solution for than what I could came up with? I can provide more details if needed.

Reproduction

Type a long paragraph using fill

Expectation

Fully type the text without timing out

MCP configuration

No response

Chrome DevTools MCP version

0.13.0

Chrome version

143.0.7499.192

Coding agent version

opencode 1.1.25

Model version

No response

Chat log

No response

Node version

v22.22.0

Operating system

Linux

Extra checklist

  • I want to provide a PR to fix this bug

Activity

  1. added theissue type on Jan 17, 2026
  2. OrKoN commented on Jan 17, 2026

    @OrKoN
    Collaborator

    page.keyboard.type() only works for the keyboard input and does not handle other types of input controls. It also does not check if the element is ready/able to receive input.

  3. OrKoN commented on Jan 17, 2026

    @OrKoN
    Collaborator

    page.keyboard.type() times out as well in a test for me. The locator fill() uses page.keyboard.type() underneath so it makes sense. The reason is that each character is types one by one and that takes longer for larger texts.

  4. self-assigned this
    on Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions