Substack whoami (signed-in account)
Report which Substack account this browser is signed in as: the @handle, display name, email and numeric user id. Being signed out is reported as a normal answer (loggedIn false), not an error, so it can be used to check a session before running other Substack scripts.
Input
None
Output
evidence requiredloggedIn requiredname optionalemail optionalhandle optionaluserId optionalFAQ
List Substack newsletter posts
List a Substack publication's posts from its archive, newest or top first, with optional keyword search and pagination. Returns each post's title, slug, publish date, paywall status, and reaction/comment/restack counts.
Post Substack comment
Post a comment on a Substack post as the logged-in account. The account needs a display name set up on Substack first (via any post's comment box) — the script fails loudly with instructions if it isn't.
Delete Substack comment
Delete one of the logged-in account's own comments on a Substack post, by the post URL and the comment's id (from post_comment or get_post_comments). Only your own comments can be deleted, and this cannot be undone.
