Add an OAM document Resource
memory_add_documentRetain a text document or HTTPS HTML/PDF/image original as a searchable OAM Resource with replace or append updates, keeping sources as evidence rather than learned facts.
Instructions
Retain a text document or an HTTPS HTML/PDF/image original as a searchable OAM Resource. Resources remain evidence and do not become learned facts.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document_id": "<document_id>",
"update_mode": "<update_mode>"
},
"name": "memory_add_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | HTTPS URL of an HTML, PDF, PNG, or JPEG original. | |
| text | No | Text document body. | |
| media_type | No | Required with url; must match the fetched original. | |
| document_id | Yes | Stable document identifier within this OAM user. | |
| update_mode | Yes | Replace the document body or append text to an existing text document. | |
| idempotency_key | No | Header-safe key, 1-200 characters from A-Z, a-z, 0-9, dot, underscore, colon, or hyphen. Reuse it when retrying this exact write; omit to generate a new key. |