Items and content types
View MarkdownSearch and read content, save drafts, and manage the schemas that give items a structure.
Start with a read credential to find an item. Before a revision, read its current version so you can send the right expected_revision.
Search example
After initialization, send this read-only request.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_items",
"arguments": {"q": "equipment inspection", "limit": 10}
}
}
Open a result with get_item using its id.
Capture example
When creating typed content, set item.content.format to json and item.content_type to the content type’s id and version. This example creates untyped Markdown with capture_item.
{
"item": {
"title": "Inspection notes",
"content": {"format": "markdown", "value": "Replace the worn label."},
"tags": ["inventory"]
},
"idempotency_key": "inspection-notes-example"
}
Find and read items
list_items
Returns item summaries. Search matches current titles, tags, content, cleared filenames, embedded metadata, document text, and OCR text.
Access Read · Arguments Optional q, cursor, limit, content_type_id, archived
get_item
Returns the current item or the requested revision.
Access Read · Arguments id, optional revision
Create and revise items
capture_item
Creates a Markdown or JSON item. Reuse the same key with the same payload when retrying.
Access Write · Arguments item, optional idempotency_key
revise_item
Creates a revision. Read the current revision before editing. Omit content_type to preserve the assignment, or set it to null to clear it.
Access Write · Arguments id, expected_revision, item
Archive and restore items
archive_item
Archives an item while preserving its ID and revisions.
Access Write · Arguments id
restore_item
Returns an archived item to active lists and search.
Access Write · Arguments id
Work with content types
list_content_types
Lists content types.
Access Read · Arguments Optional cursor, limit
get_content_type
Returns a content type schema.
Access Read · Arguments id, optional version
create_content_type
Creates the first schema version.
Access Manage types · Arguments name, fields
revise_content_type
Adds a schema version. Existing items keep their assigned version.
Access Manage types · Arguments id, expected_version, schema