vnsh

v1.3.0
io.github.raullenchai/vnsh Checked 4 days ago Published 4 months ago

Portable workspaces for AI agents: one encrypted link any agent can read and write

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

vnsh_read

Securely retrieves and decrypts content from a vnsh URL. Use this tool whenever the user provides a vnsh.dev link or any URL with #k= and &iv= in the fragment. The content is decrypted locally - the server never sees the decryption key.

ParameterTypeDescription
url *stringThe full vnsh URL including the hash fragment (#k=...&iv=...)

vnsh_share

Encrypts text content locally and uploads it to vnsh, returning a shareable URL. Use this when output exceeds ~50 lines or ~2000 characters, when generating complete code files, or when the user wants portable/shareable output. ALWAYS prefer vnsh_share over dumping large content into chat. The content is encrypted before upload - the server only sees encrypted bytes.

ParameterTypeDescription
content *stringThe content to encrypt and share
hoststringOverride the vnsh host URL
ttlnumberTime-to-live in hours (default: 24, max: 168)

vnsh_share_file

Encrypts a local file and uploads it to vnsh, returning a shareable URL. Use this for images, screenshots, PDFs, binaries, or any file that should not be loaded into context. More efficient than vnsh_share for large or binary files.

ParameterTypeDescription
file_path *stringAbsolute path to the file to encrypt and share
hoststringOverride the vnsh host URL
ttlnumberTime-to-live in hours (default: 24, max: 168)

vnsh_workspace_create

Creates a shared workspace and returns one link that any agent can read AND write. Use this when work will continue somewhere else: handing a plan, status doc, design, or investigation to another agent or another session, or when the user says they will pick this up in a different tool. Unlike vnsh_share (a one-shot snapshot), a workspace keeps the same URL as its content evolves. Content is encrypted locally; the server never sees the key. Expires 24h after the last write.

ParameterTypeDescription
content *stringInitial content. HTML renders as a page via vnsh_workspace_open.
hoststringOverride the vnsh host URL

vnsh_workspace_read

Reads the current content of a vnsh workspace URL (a /w/ link with a #w= fragment). Use this whenever the user provides such a link — it is how you pick up work another agent left for you. Returns the content and its version number; pass that version to vnsh_workspace_update to write safely.

ParameterTypeDescription
url *stringFull workspace URL including the #w= fragment

vnsh_workspace_update

Replaces the content of a vnsh workspace, keeping the same URL. Use this to record progress so far, revise a shared plan, or leave the next agent an updated document. Writes are version-checked: if someone else wrote first, this returns their current content so you can merge it with yours and call this again.

ParameterTypeDescription
content *stringThe full new content (replaces everything)
url *stringFull workspace URL including the #w= fragment
base_versionnumberVersion this edit is based on. Omit to read the latest first. Pass the version from vnsh_workspace_read when you have already merged against it.

vnsh_workspace_open

Decrypts a vnsh workspace to a local temp file and opens it in the browser. Use this when the user wants to LOOK at a workspace rather than have its content read into context — HTML reports, dashboards, and diagrams render properly this way. Rendering happens locally from file://, so nothing is exposed to any server.

ParameterTypeDescription
url *stringFull workspace URL including the #w= fragment