PromptCache icon

PromptCache

Read prompts, versions, variables, and render templates from PromptCache

Actions7

Prompt → Get

AI-generated

Summary

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.

Links

Discussion