host.docs.put
Write (or, for an already-used name, create a new version of) a document in this tenant's document store. mime is detected from name and content when omitted; allowed mimes are text/plain, text/markdown, application/json, text/csv. content (or content_base64 for arbitrary bytes) must be at most MCPHOST_DOC_MAX_BYTES (default 2 MiB). Identical content to the current version is a no-op that repeats the current version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | No | One of text/plain, text/markdown, application/json, text/csv; detected from name/content when omitted. | |
| name | Yes | Document name; same name on a later put creates a new version of the same id. | |
| content | No | Document content as text; use content_base64 instead for arbitrary bytes. | |
| metadata | No | Arbitrary caller metadata stored alongside the document; any JSON value. | |
| tenant_key | No | The key `signup` returned. Required only when this connection carries no Authorization: Bearer header -- when both are present, the header wins. | |
| content_base64 | No | Document content, base64-encoded; use content instead for plain text. |