Search Postlyra drafts
search_post_draftsUse this when finding an existing draft by topic, title or content. Search first when draftId is unknown; do not ask for a link. Matches all keywords/fragments in title and rich text, ignoring case. Empty query lists recent drafts. Follow nextCursor while hasMore. For an in-chat card, pass the returned draftId as postId to show_post_card; use preview_post for a screenshot/browser preview. Returns owner-only IDs and snippets. Never edits, enables sharing or publishes.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_post_drafts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum matches on this page. | |
| query | No | Keywords or word fragments, not a full instruction; every term must match title or body. Example: 'ремонт тормоз' or 'brake cost'. Ignore case and е/ё differences. Omit or use empty string to list recent drafts. If nothing matches, retry fewer terms. | |
| cursor | No | Opaque nextCursor from the preceding response for the same query. Omit on the first call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| drafts | Yes | ||
| hasMore | Yes | More drafts remain to search; later pages may have no matches. | |
| message | Yes | ||
| nextAction | Yes | ||
| nextCursor | Yes |