Skip to content

PromptScript API


Function: interpolateSkillContent()

interpolateSkillContent(content, params, args): string

Defined in: resolver/src/skills.ts:376

Interpolate skill content with parameter values.

Binds provided arguments and defaults to {{variable}} placeholders in the skill content string.

Parameters

content

string

Skill content with {{variable}} placeholders

params

ParamDefinition[] | undefined

Parameter definitions from SKILL.md frontmatter

args

Record\<string, Value>

Argument values provided at the call site

Returns

string

Interpolated content string