Function Signature
Parameters
The prompt ID to retrieve. Must be one of the available prompt IDs:
'master_prompt'- Base prompt for all translations'encyclopedia_mixed'- For mixed-discipline scholarly works'fatawa'- For Islamic legal rulings and Q&A'fiqh'- For Islamic jurisprudence'hadith'- For hadith narrations'jarh_wa_tadil'- For narrator criticism and praise'tafsir'- For Quranic commentary'usul_al_fiqh'- For principles of Islamic jurisprudence
Returns
A stacked prompt object ready for LLM use
Unique identifier matching the requested ID
Human-readable display name (e.g., “Hadith”, “Fiqh”)
The full prompt content. For master prompt, returns as-is. For addon prompts, returns master + addon stacked together.
Whether this is the master prompt (not stacked).
true only for 'master_prompt', false for all addons.Example
Errors
Throws anError if the prompt ID is not found:
The PromptId type is strongly typed based on available prompt files. TypeScript will provide autocomplete and catch invalid IDs at compile time.
Related
- getPrompts - Get all available prompts
- getStackedPrompt - Get just the prompt content string
- getMasterPrompt - Get the master prompt only