list_prompts tool returns a paginated list of prompt metadata (without full content) for all prompts visible to the authenticated caller or public prompts for anonymous callers.
Access Control
- Authenticated users: Returns their own prompts (public or private) plus all public prompts from other users
- Anonymous callers: Returns only public prompts
- Archived prompts: Always excluded from results
Parameters
Number of prompts to return per page. Must be between 1 and 100.
Number of prompts to skip (for pagination). Must be >= 0.
Response
Returns aListPromptsResult object containing an array of prompt entries.
Examples
Request
Response
Implementation Details
- Results are ordered by
updated_atdescending (most recently updated first) - Variables are automatically extracted from the latest version of each prompt
- The tool uses the
extractVariables()utility which matches{{variable}}patterns - Pagination is implemented using SQL
RANGEfor efficient offset/limit queries
Error Codes
Parameters failed validation (e.g., limit out of range, negative offset)
Database query failed or other internal error occurred