The prompt sends files from the workspace to a file input on a page. The agent passes the input control’s reference and snapshotId, along with paths to the files under workspace.
It accepts from one to {{max_files}} paths. Files outside the workspace cannot be uploaded directly; they must first arrive in chat as attachments. In Claude Code, save the prompt as .claude/commands/web_upload.md.
What it helps with
send a workspace file to a page’s file input
pass several workspace file paths to a page
handle a file from outside the workspace by sending it as a chat attachment
Example prompts for the agent
Upload src/app.js and README.md to the file input on the page.
Send assets/logo.svg from the workspace to the page’s upload field.
How to install web_upload
Manually: put the files in place
.claude/commands/web_upload.md
How to use
Paste the text at the start of a chat or into project instructions
Questions about web_upload
How do I install web_upload in Claude Code?
Save the prompt as .claude/commands/web_upload.md.
What does web_upload do?
It sends workspace files to a page’s file input using the control reference, snapshotId, and file paths.
Which files can web_upload upload?
It accepts paths under workspace, from one to {{max_files}} files. Files outside the workspace must first be sent in chat as attachments.
Source text
web_upload.md · Apache-2.0
Give workspace files to a file input on the page: pass the file control's ref+snapshotId and 1-{{max_files}} paths under {{workspace}}. Files outside the workspace cannot be uploaded; ask the user to send them as chat attachments first.