Actions7
- Prompt Actions
- Version Actions
- Rendering Actions
Prompt → Get
AI-generatedSummary
Fetches a PromptCache prompt by ID from its live draft or a published snapshot. Published reads use the latest version by default, or a specified published version.
Inputs
- Prompt ID (required) — The PromptCache prompt ID to fetch.
- Content Source — Choose Published (default) to fetch a published snapshot, or Draft to fetch the live prompt saved in the editor.
- Version Number — For Published reads, choose a version number; leave at 0 to use the latest published version. Not used for Draft reads.
Output shape
A single item containing the prompt data as JSON.
The result includes contentSource. Published results also include resolvedVersion. A published read fails if the requested version is not found or the prompt has no published version.