View as Markdown
Mapbox icon

Mapbox ACTION

Create Tileset

Uploads and creates a new tileset from a data source. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Mapbox account once, then configure and run Create Tileset from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "mapbox-create-tileset",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    mapbox: { authProvisionId: "apn_xxxxxxx" },
    username: "Username",
    tilesetName: "Tileset Name",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Create Tileset inputs
Property Type Description
username Username string
The Mapbox username of the account for which to create a tileset source
Required
tilesetName Tileset Name string
A unique name for the tileset source to be created. Limited to 32 characters. The only allowed special characters are - (hyphen) and _ (underscore)
Required
filePath File Path or URL string
A tileset source file. Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFile.txt)
Required
recipe Recipe object
A recipe that describes how the GeoJSON data you uploaded should be transformed into tiles. A tileset source is raw geographic data formatted as line-delimited GeoJSON, or a supported raster file format. For more information on how to create and format recipes, see the Recipe reference and Recipe examples.
Required
description Description string
A description of the tileset
Optional
private Private boolean
Describes whether the tileset must be used with an access token from your Mapbox account. Default is true.
Optional
syncDir SyncDir dir
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
mapbox-create-tileset
Version
0.1.4
App
Mapbox
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes