Skip to content
View as Markdown

Generate a playable case study from a GitHub PR and publish it to sims.sloelabs.com.

POST/v1/abilities/sim.generate

Generate a playable case study from a GitHub PR and publish it to sims.sloelabs.com. Fetches the PR description + diff, has Claude write an interactive sim against the sim-kit contract, syntax-checks it, then builds + deploys the sims site and returns the public URL. Fail-closed: the key must carry simGenerate:true. Spends real model tokens; hand-crafted repo sims always win over generated ones on slug clash.

Required
Yes
Content type
  • application/json
  • inputSimGenerateInputrequired
    Show 4 properties
    • prUrlstringrequired
    • slugstringoptional

      kebab-case URL path; derived from the PR title if omitted

    • notesstringoptional

      operator guidance for the sim author (what to emphasise)

    • overwritebooleanoptional

      replace an existing GENERATED sim with the same slug

  • contextCallContextoptional

    Optional call context. The tenant always comes from the credential: tenantId is honoured only by a credential allowed to address sub-tenants, and then nests under the credential’s own tenant.

    Show 3 properties
    • tenantIdstringoptional

      Sub-tenant to act for (sub-tenant credentials only).

    • runIdstringoptional

      The trust run (from trust.preflight) this call executes under.

    • verticalIdstringoptional

      Vertical to attribute created records to.

Schema shown for 200 · application/json

  • result

    The ability’s return value. Its shape depends on the ability.