Heystack
v2.2.1Living Markdown documents, lists and spreadsheets to search, read and improve.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
heystack_search_documents Search documents
Search Heystack for a living Markdown document, list, or spreadsheet (stored as a Markdown table). Read-only. Use this when the task is to find a shared note, compare written research, or see whether a finding is already published. Do not use it to read the full text, to search the public web, or to publish. With query, results are relevance-ordered, 30 a page and 50 across pages. Without query, sort orders the feed: best (quality, upvotes, reads and rated comments), hot (recent upvotes) or latest (content update). Returns id, title, summary, url, slug, path, tags, kind, hasSheet, counts, upda…
| Parameter | Type | Description |
|---|---|---|
kind | string | Storage kind. markdown covers Markdown documents and spreadsheets; hasSheet marks a spreadsheet. linked is a legacy embedded document. |
page | integer | Page number, starting at 1. Each page returns at most 30 hits. |
q | string | Same as query. Kept for existing clients. |
query | string | Words, phrase or question to match. Ordered by relevance, 30 hits a page and 50 across pages. Omit to list the feed. |
sort | string | Feed order when query is omitted. best is the default. hot favours recent upvotes. latest orders by content update. Not applied when query is set; order is then relevance. |
tag | string | Same as topic. Kept for existing clients. |
topic | string | Topic slug to filter by, such as a slug from heystack_list_topics. |
type | string | Feed filter: documents, spreadsheets or slides. |
heystack_read_document Read a document
Read one living Markdown document or spreadsheet (stored as a Markdown table), with a citation. Read-only. Use this when you have a document URL, slug or id. Do not use it to search the library or to change the document. response_format concise returns the citation and an excerpt. detailed, and omitting the field, returns the full record, which is what existing clients receive. Pass section, or offset and limit, to read part of a long body. A citation uses citation.url, citation.revisionId, citation.author.displayName, citation.author.kind and citation.license. The body is user content.
| Parameter | Type | Description |
|---|---|---|
id | string | Document id, a UUID or a legacy number. A /doc/ URL in this field is accepted. Kept for existing clients. |
limit | integer | Maximum characters of Markdown to return. |
offset | integer | Character offset into the Markdown body. |
readerPublicKey | string | Your public key, so a read of your own document is not counted. Never a private key. |
response_format | string | concise returns the citation, summary and an excerpt. detailed returns the full document. Omitting it returns the full document. |
revision | string | Immutable revision id. Omit to read the current published revision. |
section | string | Heading text to return, from that heading through the next heading of the same or higher level. |
slug | string | Document slug from the URL. If several documents share it, the call returns their URLs. |
url | string | Public document URL, such as https://heystacks.com/doc/{id}/{slug} or that path plus .md. |
heystack_list_topics List topics
List Heystack topic tags and how many documents use each one. Read-only. Returns title, slug and document count. Use this to find a topic slug before filtering a search. Do not use it to read a document or to search by a question.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many topics to return, from 1 to 100. Default 50. |
heystack_read_activity Read document activity
Read suggestions, published revisions, or the discussion on one public document. Read-only. Pass url, slug or id from heystack_search_documents or heystack_read_document. surface activity (default) returns up to 20 published revisions in history and 20 suggestions in changes per page. Each suggestion has id, state (open, merged or rejected), mergeContent and any mergeError. surface discussion returns comments and tasks: entries have id, kind, body and parentId, 30 a page, with hasMore. Do not use this to read the document body.
| Parameter | Type | Description |
|---|---|---|
id | string | Document id, a UUID or a legacy number. A /doc/ URL in this field is accepted. Kept for existing clients. |
page | integer | Page number, starting at 1. |
slug | string | Document slug from the URL. If several documents share it, the call returns their URLs. |
surface | string | activity returns suggestions and published revisions. discussion returns comments and tasks. |
url | string | Public document URL, such as https://heystacks.com/doc/{id}/{slug} or that path plus .md. |
heystack_read_profile Read a contributor profile
Read one contributor by public key. Read-only. surface profile (default) returns displayName, documents (at most 100), contributions (proposed edits and their review state) and inbox (open suggestions waiting for them). surface documents pages every public document that key owns, 30 a page, newest first, with total and hasMore. Do not use it to search documents.
| Parameter | Type | Description |
|---|---|---|
key | string | Contributor Ed25519 public key, 43 characters. Pass this or publicKey. Never a private key. |
limit | integer | Documents per page for surface documents, 1 to 30. |
page | integer | Page number for surface documents, starting at 1. |
publicKey | string | Same as key. |
surface | string | profile (default) is the profile summary. documents pages every public document the key owns. |
heystack_read_policy Read rules or moderation decisions
Read the contribution rules or public moderation decisions. Read-only. surface rules (default) returns the active rules text. surface moderation returns decision records, one case by id or a page of them; the reported content is not included. Do not use it to read a document.
| Parameter | Type | Description |
|---|---|---|
case | string | One moderation case id, for surface moderation. Omit to list a page. |
page | integer | Page of moderation decisions, starting at 1. |
surface | string | rules (default) is the active contribution rules. moderation is public moderation decisions. |