List Mapping Jobs
listMappingsList IVR mapping jobs in your workspace. Supports filtering and cursor pagination.
FILTERS (all optional):
- status: Filter by the latest run's status. Values: idle | running | completed | failed | limited.
IMPORTANT: Mapping JOBS cycle between status `running` (active mapping) and `idle` (between runs)
and NEVER reach `completed`. Only RUNS reach `completed`/`failed`/`limited`. The `status` filter
compares against the latest run's status — so `status=completed` returns jobs whose most recent
run finished, and `status=running` returns jobs with an in-flight run.
- tag: Filter to jobs with this tag (exact, lowercase alphanumeric + hyphens, e.g. 'compliance-eu').
- phoneNumber: Filter by exact E.164 phone number (e.g. '+441234567890').
- name: Case-insensitive substring match against the job name.
- profileId: Filter to jobs using a specific mapping profile (UUID).
- createdAfter / createdBefore: ISO-8601 datetime strings (e.g. '2026-05-01T00:00:00Z'). Efficient
DDB range filter — both, either, or neither.
- limit: Page size, 1-100, default 50.
SORTING:
- sortDir: 'asc' or 'desc' (default 'desc' = newest first). Sort is always by createdAt.
PAGINATION:
- Pass `cursor` (from a previous response's `nextCursor`) to get the next page.
- When `nextCursor` is absent from the response, you are on the last page.
- LOSSY-PAGINATION CAVEAT: When filtering by `status`, paged results may underfill (return fewer
than `limit` items) because the status filter is applied after the DDB query. Always follow
`nextCursor` until it is absent to be sure you have all matches.
RESULT FIELDS:
- id: UUID — use with `getMapping` for full detail (run state, step counts) or `getMappingTree`
for the discovered IVR tree (once the latest run has status=`completed`).
- status: The latest run's status; `idle` when the job has no active run.
- tags: String labels for grouping. Set via `createMapping` / mapping update.
- config: Includes mappingMode, maxDepth, maxCalls, probeMode.
- runNumber: The run number of the latest run, if any.
USAGE PATTERNS:
- "List my 5 most recent mappings" → { limit: 5, sortDir: 'desc' }
- "Show running mapping jobs" → { status: 'running' }
- "Mappings tagged compliance-eu" → { tag: 'compliance-eu' }
- "Mappings created this week" → { createdAfter: '<start-of-week ISO>' }
- "Find runs for +44... in detail" → call listMappings { phoneNumber: '+44...' } then getMapping(id)Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "listMappings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Filter to jobs with this tag (exact, lowercase alphanumeric + hyphens). | |
| name | No | Case-insensitive substring match against the job name. | |
| limit | No | Page size (1–100, default 50). | |
| cursor | No | Opaque cursor from a previous response's `nextCursor` to fetch the next page. | |
| hasRun | No | mapping-pages-discarded-cursor fix. When true, filter to jobs with at least one run (latest run's status != idle). When false, only idle jobs. Independent of `status` — both may be combined. Post-merge filter, same underfill caveat as `status` applies: always follow `nextCursor` until absent. | |
| search | No | mapping-pages-discarded-cursor fix. Case-insensitive OR substring match across job `name` and `phoneNumber` — server-side equivalent of the Map Results page search box. Distinct from the exact-match `name`/`phoneNumber` filters above, which remain ANDed when both given and are unchanged by this addition. | |
| status | No | Filter by the latest run's status. | |
| sortDir | No | Sort direction by createdAt (default desc = newest first). | desc |
| profileId | No | Filter to jobs using a specific mapping profile. | |
| phoneNumber | No | Filter by exact E.164 phone number. | |
| createdAfter | No | ISO-8601 datetime; return jobs created at or after this time. | |
| createdBefore | No | ISO-8601 datetime; return jobs created before this time. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| nextToken | No | Alias for nextCursor (frontend back-compat). Absent on the last page. | |
| nextCursor | No | Opaque base64-encoded cursor. Pass back in `cursor` query param to fetch next page. Absent on the last page. |