feat(put_page): add --file param to bypass Windows pipe buffer limitation#1365
feat(put_page): add --file param to bypass Windows pipe buffer limitation#1365ecat2010 wants to merge 1 commit into
Conversation
…tion - Change content param to required: false - Add file param (read content from file path) - Add handler logic to read file when file param is provided Fixes garrytan#1363
|
Closing as redundant with the already-shipped The v0.41.4.0 wave (#1377) lands a doc improvement that points Windows / pipe-buffer users at capture from Historical context for posterity: the original diff inserted the new handler block into |
Problem
On Windows, the default pipe buffer size is limited (~45KB). Passing large content to
gbrain put_pagevia stdin/pipe silently truncates or fails.Solution
Add a
fileparameter toput_pageoperation. When provided, the handler reads content directly from the file, completely bypassing the pipe buffer limitation.Changes
contentparam:required: false(wastrue, now optional)fileparam toput_pageoperation paramsp.fileis set, read file content viafs.readFileinvalid_requestif neithercontentnorfileis providedBackward Compatibility
contentonly: still work unchangedcapture --fileCLI: already works (usescontentafter reading file locally)put_pagewithfileparam: new feature for MCP and direct API callersRelated
Fixes #1363
contentparam backward compatiblefileparam reads file correctly