Heystack

v2.2.1
com.heystacks/heystack Checked 1 day ago Published 5 days ago

Living 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…

ParameterTypeDescription
kindstringStorage kind. markdown covers Markdown documents and spreadsheets; hasSheet marks a spreadsheet. linked is a legacy embedded document.
pageintegerPage number, starting at 1. Each page returns at most 30 hits.
qstringSame as query. Kept for existing clients.
querystringWords, phrase or question to match. Ordered by relevance, 30 hits a page and 50 across pages. Omit to list the feed.
sortstringFeed 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.
tagstringSame as topic. Kept for existing clients.
topicstringTopic slug to filter by, such as a slug from heystack_list_topics.
typestringFeed 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.

ParameterTypeDescription
idstringDocument id, a UUID or a legacy number. A /doc/ URL in this field is accepted. Kept for existing clients.
limitintegerMaximum characters of Markdown to return.
offsetintegerCharacter offset into the Markdown body.
readerPublicKeystringYour public key, so a read of your own document is not counted. Never a private key.
response_formatstringconcise returns the citation, summary and an excerpt. detailed returns the full document. Omitting it returns the full document.
revisionstringImmutable revision id. Omit to read the current published revision.
sectionstringHeading text to return, from that heading through the next heading of the same or higher level.
slugstringDocument slug from the URL. If several documents share it, the call returns their URLs.
urlstringPublic 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.

ParameterTypeDescription
limitintegerHow 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.

ParameterTypeDescription
idstringDocument id, a UUID or a legacy number. A /doc/ URL in this field is accepted. Kept for existing clients.
pageintegerPage number, starting at 1.
slugstringDocument slug from the URL. If several documents share it, the call returns their URLs.
surfacestringactivity returns suggestions and published revisions. discussion returns comments and tasks.
urlstringPublic 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.

ParameterTypeDescription
keystringContributor Ed25519 public key, 43 characters. Pass this or publicKey. Never a private key.
limitintegerDocuments per page for surface documents, 1 to 30.
pageintegerPage number for surface documents, starting at 1.
publicKeystringSame as key.
surfacestringprofile (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.

ParameterTypeDescription
casestringOne moderation case id, for surface moderation. Omit to list a page.
pageintegerPage of moderation decisions, starting at 1.
surfacestringrules (default) is the active contribution rules. moderation is public moderation decisions.