Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to Dynamic Mockups

Scalekit connector
Open markdown

The Dynamic Mockups connector lets your AI agent act in each user's Dynamic Mockups account. Each user connects their own Dynamic Mockups API key once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 21 tools.

Tools
21
What they doRead · write · destructive
10 · 10 · 110 read10 write1 destructive
Users sign in with

Setup

  1. Install the SDK

    Terminal window
    npm install @scalekit-sdk/node dotenv
  2. Set your credentials

    Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Create the Dynamic Mockups connection

    In AgentKit > Connections, create a Dynamic Mockups connection. The name you give it is the connection_name your code passes. See Configure connections.

  4. Authorize a user and make your first call

    quickstart.mts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    import { createInterface } from 'node:readline/promises'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENVIRONMENT_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET,
    )
    const actions = scalekit.actions
    const connector = 'dynamicmockups'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize Dynamic Mockups:', link)
    const rl = createInterface({ input: process.stdin, output: process.stdout })
    await rl.question('Press Enter after authorizing...')
    rl.close()
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'dynamicmockups_list_catalogs',
    toolInput: {},
    })
    console.log(result)
    Terminal window
    npx tsx quickstart.mts

    Each user opens the link once and enters their Dynamic Mockups credentials there. See Authorize a user for the full flow and statuses.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • dynamicmockups_get_mockupFetch one mockup template from My Templates by its UUID.Read-only

    Get Mockup

    Fetch one mockup template from My Templates by its UUID. Returns the mockup's uuid, name, thumbnail, smart objects (uuid, size, position, print area presets), text layers, collections and thumbnails. Use get_mockup to read the smart object and text layer uuids of a known mockup. Use list_mockups to browse or search.

    Inputs

    uuidstringrequired
    UUID of the mockup to retrieve, taken from list_mockups or from the mockup's URL in the web app.
  • dynamicmockups_list_catalogsList the catalogs in the account that owns the API key.Read-only

    List Catalogs

    List the catalogs in the account that owns the API key. Returns each catalog's uuid, name, type (custom or default) and creation time. Use list_catalogs to find a catalog_uuid for filtering mockups and collections or for creating collections.

    Inputs

    This tool takes no inputs.

  • dynamicmockups_list_collectionsList mockup collections, optionally limited to one catalog.Read-only

    List Collections

    List mockup collections, optionally limited to one catalog. Returns each collection's uuid, name, mockup count and created and updated times. Use list_collections to find a collection_uuid for list_mockups or create_bulk_render.

    Inputs

    catalog_uuidstring
    Optional UUID of a catalog (from list_catalogs) to limit the collections to. Leave it out to use the default catalog.
    include_all_catalogsboolean
    Set true to include collections from every catalog. When false or left out, only the default catalog is searched.
  • dynamicmockups_list_mockupsList the mockup templates in My Templates, optionally filtered by catalog, collection or name.Read-only

    List Mockups

    List the mockup templates in My Templates, optionally filtered by catalog, collection or name. Returns each mockup's uuid, name, thumbnail, smart objects with their uuids, text layers, collections and thumbnails. Use list_mockups to find a mockup_uuid and smart object uuids before rendering. Use get_mockup when you already have the mockup uuid.

    Inputs

    catalog_uuidstring
    Optional UUID of a catalog (from list_catalogs) to limit the mockups to. Leave it out to use the default catalog.
    collection_uuidstring
    Optional UUID of a collection (from list_collections) to limit the mockups to.
    include_all_catalogsboolean
    Set true to include mockups from every catalog. When false or left out, only the default catalog is searched.
    namestring
    Optional name filter, for example 'mug', to narrow the mockups returned.
  • dynamicmockups_mockanything_get_productFetch the full detail of one print-on-demand product.Read-only

    Get MockAnything Product

    Fetch the full detail of one print-on-demand product. Returns the product's uuid, name, brand, style code, category, decoration areas with position ids and sources, colors and sizes. Use mockanything_get_product to pick valid size, color and decoration values for mockanything_create. Get the uuid from mockanything_search_products.

    Inputs

    uuidstringrequired
    UUID of the product, taken from mockanything_search_products.
  • dynamicmockups_mockanything_get_statusCheck the progress of an AI mockup creation task started from a prompt.Read-only

    Get MockAnything Status

    Check the progress of an AI mockup creation task started from a prompt. Returns data with the task_id, state (PROGRESS, SUCCESS or FAILURE), image_url and, on SUCCESS, the mockup details whose uuid works as mockup_uuid for rendering. Use mockanything_get_status after mockanything_create returns a task_id. Poll again while the state is PROGRESS.

    Inputs

    task_idstringrequired
    Task id returned by mockanything_create.
  • dynamicmockups_mockanything_list_stylesList the visual styles available for AI-generated mockups.Read-only

    List MockAnything Styles

    List the visual styles available for AI-generated mockups. Returns each style's id, description and the models that support it. Use mockanything_list_styles to find a valid style for mockanything_create. Pass a model to see only the styles that model supports.

    Inputs

    modelstring
    Optional AI model to limit the styles to. All styles for all models are returned when left out.one of nano_banana_2nano_banana_liteseedream_4_0seedream_4_5gpt_image_2
  • dynamicmockups_mockanything_search_productsSearch the print-on-demand product catalog used to ground AI mockups.Read-only

    Search MockAnything Products

    Search the print-on-demand product catalog used to ground AI mockups. Returns a list of matching products, each with a name and uuid. Use mockanything_search_products to find a product uuid, then mockanything_get_product for its sizes, colors and decoration areas.

    Inputs

    querystringrequired
    Search text for the product, for example 'gildan 5000 t-shirt'.