mcpField
U
uipath-tasks

uipath-tasks

github.com/uipathProductivity17548 installsUpdated today
Repository

About uipath-tasks

A skill for using the UiPath CLI to manage human-review tasks in Action Center, with guidance for safe tenant selection and task workflows.

Key features

  1. 01List and inspect tasks
  2. 02Assign, reassign, and complete tasks
  3. 03Manage catalogs, comments, labels, and metadata
  4. 04Read and save task data
  5. 05Retrieve execution traces and submit feedback

Use cases

  1. 01Review pending approvals across folders
  2. 02Assign tasks to eligible users
  3. 03Update task data, labels, or comments
  4. 04Investigate an Agent or Maestro task trace

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/uipath/skills --skill uipath-tasks

After installing, type/uipath-tasksin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
action-center-urls.md
task-assignment.md
task-catalogs.md
task-completion.md
task-data.md
task-execution-trace.md
task-lifecycle.md
task-metadata.md

Details

From the project README

UiPath Tasks (Action Center) — Agent Skill

Action Center is UiPath's human-in-the-loop platform. Tasks represent work items that require human input — form approvals, document validation, data labeling, and more.

All operations go through uip tasks <verb> --output json.


Login & Tenant Setup

Default to Production. Only switch environment/org/tenant when explicitly stated in the request.

  • If the request mentions no environment → use the current session (defaults to prod cloud.uipath.com)
  • If the request explicitly names an environment/org/tenant → check uip login status and re-login if needed

When switching is required:

  1. Check current login: uip login status --output json — verify UIPATH_URL, Organization, and Tenant
  2. Re-login with --authority only if environment differs:
    • Non-default host (Automation Suite, dedicated, other): uip login --authority "<AUTHORITY_URL>" --tenant <tenant>
    • cloud.uipath.com: uip login --tenant <tenant> (default, no --authority needed)
  3. If already on the right environment but wrong tenant: uip login tenant set <tenant-name>
# Check current environment, org, and tenant
uip login status --output json

# Login to a specific environment (production cloud is the default)
uip login --authority https://cloud.uipath.com --tenant MyTenant

# List all available tenants (after login)
uip login tenant list --output json

# Switch tenant within the same environment
uip login tenant set MyTenant

Critical: The --tenant flag on tasks commands does NOT switch the active session tenant. The environment is determined by UIPATH_URL in the auth file — always confirm with login status before running tasks commands.


When to Use

  • Listing or inspecting Action Center tasks across folders
  • Assigning, reassigning, or unassigning tasks to users
  • Completing tasks with action outcomes and data payloads
  • Querying which users have task permissions in a folder
  • Managing task catalogs (list, get, create, update) and their retention policy
  • Reading and adding task comments
  • Setting task labels
  • Editing task metadata (title, priority, catalog association)
  • Getting and saving task data
  • Fetching the execution trace for an Agent or Maestro task, and submitting feedback on a trace or span

Not in scope: Orchestrator queues or queue items (use uip or), Document Understanding model training, or Action Center app development (use uip codedapp).


Task Types

TypeCLI valueDescription
Form taskFormTaskForm-based approval/action task
External taskExternalTaskGeneric external task
App taskAppTaskAction Center app-based task
Document validationDocumentValidationTaskDocument Understanding validation
Document classificationDocumentClassificationTaskDocument Understanding classification
Data labelingDataLabelingTaskData labeling task

Task Statuses & Priorities

StatusMeaning
UnassignedCreated but not assigned to any user
PendingAssigned, awaiting completion
CompletedCompleted with an action/outcome
PriorityLevel
LowLow
MediumMedium (default)
HighHigh
CriticalCritical

Quick Start

# Check login and active tenant
uip login status --output json

# Switch tenant if needed
uip login tenant set <tenant-name>

# List all tasks across folders
uip tasks list --output json

# Get details of a specific task
uip tasks get <task-id> --output json

# Assign a task to a user
uip tasks assign <task-id> --user [email protected] --output json

# Complete a task
uip tasks complete <task-id> --type ExternalTask --folder-id <folder-id> --output json

Critical Rules

  1. Always resolve org and tenant first. If the user specifies an org/environment and tenant, run uip login status to check the active tenant, then uip login tenant set <tenant> to switch if needed. Never assume the active tenant matches the user's intent.

  2. Task IDs are numeric. Unlike other UiPath services that use GUIDs, Action Center uses numeric task IDs. Use tasks list to discover task IDs.

  3. Folder scope comes in three interchangeable forms. Folder-scoped commands accept --folder-id <numeric-id>, --folder-path <path>, or --folder-key <guid> (mutually exclusive). Path and key are exactly what uip or folders list prints (it has no numeric ID column), so prefer them when the folder came from folder discovery; the numeric id still works when a task row gave you folderId.

  4. Complete requires --type. The API routes to different endpoints per task type. Always include --type when completing a task. Use tasks get to check the task type first.

  5. FormTask and AppTask require --action and --data for completion. Other task types allow optional action and data.

  6. Assign accepts --user-id or --user (email). Use tasks users <folder-id> (or tasks users --folder-path <path> / --folder-key <guid>) to discover assignable users and their IDs.

  7. Always discover before acting. Use tasks list or tasks get to inspect task state before performing assign/complete operations.

  8. Do not complete already-completed tasks. Check the task status field — if it is Completed, inform the user.

  9. Folder scope for complete/catalogs/comments/labels/metadata/data. These commands need a folder. Pass one of --folder-id/--folder-path/--folder-key, or omit all three on an interactive terminal to pick from a list. A folder option is required in non-interactive runs (agents, CI) — the command fails with A folder is required otherwise, so always pass one explicitly there.

  10. Retention actions are Delete or Archive. Archive also needs --retention-bucket-id. --encrypted is create-only and cannot be changed on update.

  11. Labels replace the full set. tasks labels --labels overwrites all labels on the task — include every label to keep, and pass [] to clear them all.

  12. data save takes no type flag. The command resolves the task type itself; pass the task ID, a folder option (--folder-id/--folder-path/--folder-key), and --data (a JSON object).


Task Navigation

TaskCommands to use
List all taskstasks list
List tasks in a foldertasks list --folder-id <id>
List tasks in a folder by path/keytasks list --folder-path "<path>" or tasks list --folder-key <guid>
List tasks as admintasks list --as-admin
Get task detailstasks get <task-id>
Get task with type hinttasks get <task-id> --task-type FormTask --folder-id <id>
Assign a tasktasks assign <task-id> --user <email>
Assign by user IDtasks assign <task-id> --user-id <id>
Reassign a tasktasks reassign <task-id> --user <email>
Unassign a tasktasks unassign <task-id>
Complete a tasktasks complete <task-id> --type <type> --folder-id <id>
Complete with actiontasks complete <task-id> --type FormTask --folder-id <id> --action "Approve" --data '{...}'
List assignable userstasks users <folder-id>, tasks users --folder-path "<path>", or tasks users --folder-key <guid>
List task catalogstasks catalogs list --folder-id <id>
Get a catalogtasks catalogs get <catalog-id> --folder-id <id>
Create a catalogtasks catalogs create --name <name> --folder-id <id>
Update a catalogtasks catalogs update <catalog-id> --folder-id <id>
List task commentstasks comments list <task-id> --folder-id <id>
Add a commenttasks comments add <task-id> --text <text> --folder-id <id>
Set task labelstasks labels <task-id> --labels '[{"name":"region","displayName":"Region","displayValue":"EMEA"}]' --folder-id <id>
Edit task metadatatasks metadata <task-id> --folder-id <id> [--title --priority --catalog-id]
Get task datatasks data get <task-id> --folder-id <id>
Save task datatasks data save <task-id> --data '{...}' --folder-id <id>
Get a task's execution trace (Agent/Maestro only)tasks get <task-id> --output json then traces spans get <trace-id>; see references/task-execution-trace.md
Submit feedback on a trace or spantraces feedback create --trace-id <id> --folder-key <key> --positive; see references/task-execution-trace.md

Workflow: Discover → Plan → Act → Verify

Always follow this pattern:

  1. Discover — list tasks, get details, find assignable users
  2. Plan — determine the operation (assign, complete, etc.)
  3. Act — execute the operation
  4. Verify — re-read the task to confirm the state change
# 0. Ensure correct tenant
uip login status --output json
uip login tenant set <tenant-name>   # only if needed

# 1. Discover
uip tasks list --output json
uip tasks get <task-id> --output json

# 2. Plan — determine the task type, folder ID, and action needed

# 3. Act — assign a task
uip tasks assign <task-id> --user [email protected] --output json

# 4. Verify
uip tasks get <task-id> --output json

Troubleshooting

ErrorCauseFix
Not logged inAuth expireduip login
HTTP 401Invalid tokenRe-login
HTTP 403Permission deniedEnsure account has Action Center permissions in the folder
Missing assigneeNeither --user-id nor --user providedAdd --user <email> or --user-id <id>
Task not foundWrong task IDRun tasks list to get correct ID
Completion failsWrong --typeUse tasks get to check the actual task type
Completion fails for FormTaskMissing --action or --dataFormTask and AppTask require both --action and --data
Cannot assignUser lacks permissions in folderRun tasks users <folder-id> to list eligible users
A folder is requiredNon-interactive run without a folder optionPass --folder-id, --folder-path, or --folder-key
Folder not found: '<value>'.The path/key doesn't match a folder this login can accessRun uip or folders list and use a listed Path or Key
Invalid --folder-key: <value>The key is not a UUIDUse the GUID from the Key column of uip or folders list
Error resolving folder path/key '<value>'The folder lookup itself failed (permissions or network)Check the error detail in Instructions; verify access with uip or folders list

References

For deeper guidance, read these files only when needed:

  • references/task-lifecycle.md — Listing and getting tasks, type-hint endpoint routing, and the full discover→assign→complete workflow
  • references/task-completion.md — Completion endpoint routing, required fields per task type
  • references/task-assignment.md — Assign, reassign, unassign patterns and user discovery
  • references/task-catalogs.md — Task catalog list/get/create/update and retention policy
  • references/task-metadata.md — Editing task metadata, plus task comments and labels
  • references/task-data.md — Getting and saving task data, and save type routing
  • references/task-execution-trace.md — Execution trace lookup and feedback for Agent/Maestro tasks, ported from Action Center's legacy in-app Autopilot tools
  • references/action-center-urls.md — Canonical Action Center URL patterns; read this before constructing or sharing any task deep-link (the portal-UI misclassifies tenant-less URLs as "Orchestrator not enabled")

Comments

Markdown supported