rlm_upload_document
Upload or update project documents in text or binary formats, including .md, .pdf, and .docx, with optional metadata for context.
Instructions
Upload or update a document in the project. Supports text documents (.md, .markdown, .mdx, .txt, .rst, .adoc) and binary parser documents (.pdf, .docx, .pptx, .svg, .vsdx). Binary payloads should use base64: except SVG, which may use raw XML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Document path (e.g., 'docs/api.md') | |
| content | Yes | Document content, or base64:<payload> for binary files | |
| kind | No | Document pipeline kind. Inferred from path when omitted. | |
| format | No | Document format. Inferred from file extension when omitted. | |
| language | No | Optional language hint. Usually omitted for DOC and BINARY uploads. | |
| metadata | No | Optional structured metadata such as assetClass, usageMode (current_truth|historical_reference|template|global_knowledge), clientId, sourceKind, sourceModifiedAt, sourceSnapshotAt, sourceContentHash, freshnessPolicy, parser, and provenance fields |