Skip to main content
Glama

Publish one page or document (no terminal)

publish_file

Publish an HTML / Markdown page or document straight to a WeChat-ready LivePage link; no terminal needed. Which upload route: terminal ⇒ SPACE CLI (create_cli_token first); no terminal and text files up to 2 MB in total ⇒ publish_file; anything else or unsure ⇒ create_upload_link. The link opens and forwards inside WeChat, can be limited to a passcode or to workspace members (private), reports who viewed it, and lets readers subscribe to updates; use this when the user wants it in WeChat, wants to limit who can view it, or wants to know who read it. Use this when you have no terminal and the page is text files — HTML or Markdown pages and documents (no upload session to open first): pass the complete text content and the platform uploads it for you. Validation, content moderation (never released while moderation is unavailable), automatic release after approval or hold, and the result are exactly the same as finalize_upload. To add a version to existing pages pass proposal_id (find it with list_proposals first); to create new pages pass title (optional folder_id). One file: pass filename + content (.html / .htm / .md). When the page, styles and scripts are separate files, pass files: [{ path, content }] instead (one or the other): paths may include directories (e.g. css/style.css) and pages reference each other with relative paths; text files only (html / htm / md / css / js / mjs / json / svg / txt / csv), at most 50; the entry is manifest.entry, else index.html, else the only page. When a file is already at a public https URL (a cloud-drive public download link, a PDF link produced by another tool), pass { path, url } in files instead (e.g. [{ path: 'report.pdf', url: 'https://…' }]) and the platform fetches it — PDF, PPTX and images work: up to 50 MB each and 50 MB in total, at most 5 URLs, fetched within 30 seconds; only public addresses, and links that need a login cannot be fetched (fetch_failed, with fetch_* details in issues). UTF-8 text, up to 2 MB in total — anything larger is rejected with too_large and never truncated. The contents of images, PDF, PPTX and other binary files cannot be sent here: use a URL if there is one; otherwise without a terminal, use create_upload_link to give the user an upload page; with a terminal, use the SPACE CLI with create_cli_token. IMPORTANT: when the page already has readers outside the workspace, set hold=true whenever the user has not explicitly approved releasing this version, then show them the author link (preview_url, author only, never forward it to readers) before publish_version. Hold only matters once the page has readers outside the workspace (passcode, public, a folder link or a named link); on a page only workspace members can open — every new page starts that way — hold is ignored and the approved version becomes current directly without notifying anyone. quiet=true (no notification this time): use it for routine updates such as typo fixes or scheduled automatic refreshes; do not pass it on the version people need to know about (something changed). Reader subscriptions notify each person at most once per page per day, so they do not suit real-time alerts; to notify on every version, invite the people who need the alert as workspace members and call set_publish_notify for this page (proposal_id + auto_push=true, every version notifies). For a page refreshed every few minutes, put the changing data in a data table (the page reads ./_data/<table>.json; replace the whole table with set_data) instead of publishing a new version each time. Keywords: publish · web page · webpage · link · share · share to WeChat · WeChat link · html · pdf · markdown · upload · LivePage · proposal.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "publish_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoOptional: the tag this version gets when it goes live (a string = the tag name, such as 2026-10-28 / v2 final; or {name, title, note}). On a tagged page readers see the newest tagged version and can browse every tagged one (past issues); an existing tag name moves to this version. Daily reports use the day's date. Omitted: a page that has never been tagged behaves exactly as today; on a tagged page this version takes over the tag readers are looking at
holdNoTrue keeps the approved version waiting to publish until the user confirms; then call publish_version. Default false: approval automatically makes this version live. Only takes effect once the page has readers outside the workspace (passcode, public, a folder link or a named link); on a page only workspace members can open it is ignored, and the approved version becomes current directly without notifying anyone.
noteNoWhat changed this time: one line for subscribers and teammates, 20 characters or fewer, for example “Revised pricing after client feedback”. It appears in the update reminder; without it the reminder only says the version number, and the platform will not make one up.
filesNoA web page made of several files (page, styles, scripts and so on), or files at public URLs; use this or filename / content.
quietNotrue = no notification this time: when this version goes live, neither workspace people nor readers subscribed to this page are notified; subscribers are notified as usual on the next update. Use it for routine updates such as typo fixes or scheduled automatic refreshes; do not pass it on the version people need to know about (something changed)
titleNoTitle for a new page; with proposal_id it becomes this version’s title.
contentNoFor one file: its complete text content (UTF-8).
filenameNoFor one file: its name, such as index.html or report.md, without a directory; use this or files.
manifestNoOptional manifest fields, the same as finalize_upload (theme / theme_switch / chrome / scene / share / sections / actions …). For one file the entry comes from filename; with files you may set entry to choose the entry page. title defaults to the title above. Page settings can ride along here too (page contract): name (page name) · folder (null = out of any folder) · folder_link (shared through the folder link) · path (workspace address) · forms (same fields as set_form, no amount) · analytics.replay (session recording) · tag; anything left out is untouched, and page_settings in the result reports each item.
folder_idNoOnly when creating a new page: destination folder; omit to keep it out of any folder.
proposal_idNoExisting page to add a version to; supply this or title.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / quiet / description
      Previous value: -"true = no notification this time: when this version goes live, neither workspace people nor readers subscribed to this page are notified; subscribers are notified as usual on the next update. Use it for small edits such as typo fixes"New value: +"true = no notification this time: when this version goes live, neither workspace people nor readers subscribed to this page are notified; subscribers are notified as usual on the next update. Use it for routine updates such as typo fixes or scheduled automatic refreshes; do not pass it on the version people need to know about (something changed)"
  2. Changed1 schema field changed
    • changedInput schema / properties / hold / description
      Previous value: -"True keeps the approved version waiting to publish until the user confirms; then call publish_version. Default false: approval automatically makes this version live."New value: +"True keeps the approved version waiting to publish until the user confirms; then call publish_version. Default false: approval automatically makes this version live. Only takes effect once the page has readers outside the workspace (passcode, public, a folder link or a named link); on a page only workspace members can open it is ignored, and the approved version becomes current directly without notifying anyone."
  3. Changed1 schema field changed
    • changedInput schema / properties / manifest / description
      Previous value: -"Optional manifest fields, the same as finalize_upload (theme / theme_switch / chrome / scene / share / sections / actions …). For one file the entry comes from filename; with files you may set entry to choose the entry page. title defaults to the title above."New value: +"Optional manifest fields, the same as finalize_upload (theme / theme_switch / chrome / scene / share / sections / actions …). For one file the entry comes from filename; with files you may set entry to choose the entry page. title defaults to the title above. Page settings can ride along here too (page contract): name (page name) · folder (null = out of any folder) · folder_link (shared through the folder link) · path (workspace address) · forms (same fields as set_form, no amount) · analytics.replay (session recording) · tag; anything left out is untouched, and page_settings in the result reports each item."
  4. Changed1 schema field changed
    • addedInput schema / properties / tag
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 40,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "properties": {
      +        "name": {
      +          "maxLength": 40,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "note": {
      +          "maxLength": 2000,
      +          "type": "string"
      +        },
      +        "title": {
      +          "maxLength": 200,
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "description": "Optional: the tag this version gets when it goes live (a string = the tag name, such as 2026-10-28 / v2 final; or {name, title, note}). On a tagged page readers see the newest tagged version and can browse every tagged one (past issues); an existing tag name moves to this version. Daily reports use the day's date. Omitted: a page that has never been tagged behaves exactly as today; on a tagged page this version takes over the tag readers are looking at"
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / manifest / description
      Previous value: -"Optional manifest fields, the same as finalize_upload (theme / theme_switch / scene / share / sections / actions …). For one file the entry comes from filename; with files you may set entry to choose the entry page. title defaults to the title above."New value: +"Optional manifest fields, the same as finalize_upload (theme / theme_switch / chrome / scene / share / sections / actions …). For one file the entry comes from filename; with files you may set entry to choose the entry page. title defaults to the title above."
  6. Changed2 schema fields changed
    • changedInput schema / properties / note / description
      Previous value: -"Version note, for example: V2, revised pricing after client feedback."New value: +"What changed this time: one line for subscribers and teammates, 20 characters or fewer, for example “Revised pricing after client feedback”. It appears in the update reminder; without it the reminder only says the version number, and the platform will not make one up."
    • addedInput schema / properties / quiet
      Added value: +{
      +  "description": "true = no notification this time: when this version goes live, neither workspace people nor readers subscribed to this page are notified; subscribers are notified as usual on the next update. Use it for small edits such as typo fixes",
      +  "type": "boolean"
      +}
  7. First observed

TDQS

A4.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=false, and the description goes well beyond them: moderation gating ("never released while moderation is unavailable"), hold semantics, quiet/notification behavior, subscription throttling, fetch timeouts, and named error codes (too_large, fetch_failed). Rather than a strength, the volume of hold/quiet/subscription policy is the weakest part: it is written as persuasive prose to a human user ("19 characters or fewer", "IMPORTANT:") rather than as precise operating rules for an agent, and it repeatedly contradicts itself on when hold applies ("set hold=true whenever the user has not explicitly approved" vs "hold only matters once the page has readers outside the workspace"), making it hard to act on reliably.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The routing rule is correctly front-loaded, but after that the text sprawls into a single dense block with no paragraph breaks or lists. The binary-file constraint is stated twice ("PDF, PPTX and images work" and later "The contents of images, PDF, PPTX and other binary files cannot be sent here"), the hold rule is restated three times with shifting conditions, and the closing keyword list adds no decision value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter, nested-object tool with no output schema, the description supplies size limits, file-type allowlists, URL fetch constraints, failure modes, and a data-table alternative for high-frequency refreshes. The remaining gap is that the hold/quiet policy is described in conflicting terms, so an agent could still apply it incorrectly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine cross-parameter logic the schema states only in isolation: filename/content vs files is "one or the other," entry resolution order (manifest.entry, else index.html, else the only page), and proposal_id (existing page) vs title (new page). It does not add format or syntax detail beyond what the per-property descriptions already contain.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ("Publish an HTML / Markdown page or document straight to a WeChat-ready LivePage link") and immediately adds the differentiator "no terminal needed." The second sentence routes explicitly between SPACE CLI, publish_file, and create_upload_link, so an agent can distinguish this from siblings without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit decision rule: "terminal ⇒ SPACE CLI (create_cli_token first); no terminal and text files up to 2 MB in total ⇒ publish_file; anything else or unsure ⇒ create_upload_link." It also lists the motivating user intents (WeChat delivery, viewer restriction, read reporting) and names the excluded cases (binary content, oversized files) with the correct alternative for each.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources