Back
Integrations
Connect AI agents and your own tools to SorcEye. The same capabilities are available over MCP and over a REST API.
content_list_types
Read-only: list every registered content type with its human-readable label and a machine-readable schema of the portable JSON format used by Content - Create / Content - Update and returned by Content - Get.
content_export
Read-only: get the authenticated user's own items of a registered content type, in the portable JSON format accepted by Content - Create.
content_create
Create items of a registered content type, owned by the authenticated user, from their portable JSON format. When creating many items at once into a type that has a `source` field, ask the user whether to group them into a new bundle (content_type "sources", items [{ title }]; the result carries the bundle `key` to pass as `source`) before creating them.
content_update
Update one existing item of a registered content type, owned by the authenticated user, from a partial patch in its portable JSON format. Only fields present in the patch are changed.
content_delete
Delete one item of a registered content type by id. Irreversible: confirm with the user before calling. Only your own items can be deleted. For content_type "sources" (bundles) the bundle's content moves to "My content" by default; with_content: true deletes that content together with the bundle.
content_search
Read-only: search a registered content type by an optional title query, game-text query and type-specific filters, returning `total` (all matches, ignoring paging; Daggerheart types and sources) and one page of short projections (id + key fields, not full text). Visible items are the caller's own plus the public catalog (restricted audience rows stay hidden unless the caller holds the matching grant). owner narrows this set and never widens it ("srd" is only an is_srd filter). Use Content - Get to fetch one full item by id.
content_get
Read-only: get one item of a registered content type by id, in full (including long text fields such as description). Same visibility as Content - Search (own + public catalog; restricted audience rows stay hidden unless the caller holds the matching grant). Hidden items are "not found".
upload_image
Uploads an image (either raw bytes as base64, or a fetchable http(s) URL), re-encodes it to webp, and registers it in the image library. Returns an image_id that can be used to attach the image to content that supports one, e.g. dh-cards' "img" field.
content_mechanics_reference
Read-only: reference for Daggerheart mechanics accepted in the `mechanics` field of dh-cards, dh-features, dh-weapons, dh-armor, dh-items and dh-subclasses tiers - mechanic types and their config fields, the common fields (`condition` for every type, `slots` for res/craft/text) with the shared slot registry, keys for add/set with the value kind each expects, the format of custom `_camelCase` keys, the `res` slots/colour closed lists and constructor examples (favor, focus), the `list` mechanic over a custom collection with a stances example, variables and functions for expressions and conditions, expression syntax, and when to put a mechanic on the record itself versus on a feature. The server validates mechanics against exactly this reference.