Skip to main content
Version: 2.0

Test instruction

POST 

/v2/instructions/:instruction_id/test

Tests an instruction template with supplied context and available tools. The endpoint evaluates Velocity expressions such as $tools, ${session.metadata.field}, or ${agent.metadata.field}, and returns the fully rendered template output. Use this operation to validate formatting, logic, or metadata-dependent behavior before you deploy instructions to agents.

Request

Responses

The rendered result of the instruction test.