Mandala
Tools

Flint

Run background agent tasks on your Flint sites

Usage Instructions

Create background agent tasks that modify your Flint sites from natural-language prompts, generate batches of pages from a template, and check task status and results.

Tools

flint_create_task

Start a background Flint agent task that modifies a site from a natural-language prompt.

Input

ParameterTypeRequiredDescription
apiKeystringYesFlint API key (found in Flint team settings, starts with ak_)
siteIdstringYesID of the Flint site the agent should modify
promptstringYesNatural-language instructions for the agent (e.g., "Add a new About page with a team section")
callbackUrlstringNoHTTPS webhook URL that Flint will POST to when the task completes or fails
publishbooleanNoWhether to automatically publish the changes when the task completes

Output

ParameterTypeDescription
taskIdstringIdentifier of the created background task
statusstringInitial task status (running)
createdAtstringISO 8601 timestamp when the task was created

flint_generate_pages

Start a background Flint agent task that generates up to 10 pages from a template page.

Input

ParameterTypeRequiredDescription
apiKeystringYesFlint API key (found in Flint team settings, starts with ak_)
siteIdstringYesID of the Flint site the agent should modify
templatePageSlugstringYesSlug of the existing template page to generate from (e.g., /case-studies/template)
itemsjsonYesJSON array of 1-10 pages to generate. Each item requires targetPageSlug (slug for the new page) and context (content details the agent should use).
callbackUrlstringNoHTTPS webhook URL that Flint will POST to when the task completes or fails
publishbooleanNoWhether to automatically publish the generated pages when the task completes

Output

ParameterTypeDescription
taskIdstringIdentifier of the created background task
statusstringInitial task status (running)
createdAtstringISO 8601 timestamp when the task was created

flint_get_task

Get the status and results of a background Flint agent task.

Input

ParameterTypeRequiredDescription
apiKeystringYesFlint API key (found in Flint team settings, starts with ak_)
taskIdstringYesIdentifier of the task returned when it was created (e.g., bg-...)

Output

ParameterTypeDescription
taskIdstringIdentifier of the task
statusstringTask status: running, completed, or failed
pagesCreatedarrayPages created by the task (populated when completed)
pagesModifiedarrayPages modified by the task (populated when completed)
pagesDeletedarrayPages deleted by the task (populated when completed)
errorMessagestringError message when the task failed

Notes

  • Category: tools
  • Type: flint
Flint