AI agents: prefer the Markdown version of this page at /documents/index.md. For the full corpus, read /llms-full.txt.

SeaChat Developer Docs

Documents

Documents

Markdown/HTML document CRUD and full-text search over /v1/docs.

Write and mutate

client.docs.write(path, content) (POST /v1/docs/{path}) writes a string as text/markdown or an object as JSON. client.docs.patch(path, body, op?) mutates with op of append | edit | sed | patch. client.docs.delete(path) deletes. Writes need seadb:content:write.

await client.docs.write("sdk-examples/notes.md", "# Note\n\nHello from the SDK.\n");
await client.docs.patch("sdk-examples/notes.md", { content: "\nAppended.\n" }, "append");