/uipath:uipath-functionsfrom uipath
Scaffolds, authors, and debugs UiPath Coded Functions — deterministic Python or TypeScript/JavaScript units with typed contracts, local testing, and platform API calls. Use for custom business logic, data transforms, and ERP queries.
Ships in uipath. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Atomic, deterministic units of business logic — no LLM reasoning, no agent loop — written in Python or TypeScript/JavaScript and shipped as first-class UiPath artifacts. One uip function CLI drives both languages. A Coded Function takes typed input, executes deterministic code, and returns typed output; use one when generic activities don't cover the required logic (custom-auth API calls, domain rules, ERP queries via Integration Service, data transforms).
uip function new <NAME> -l py|ts|js)defineSchema<T>() / JSON Schema literals (JS/TS)uip function run (both languages), uip function serve + curl (JS/TS HTTP endpoints)FunctionError/status codes and job fault semantics (JS/TS)@uipath/uipath-typescript with ctx tokens)bindings.json resource bindings from SDK callsDo NOT use this skill for:
agent.json, LangGraph, LlamaIndex, OpenAI Agents, agent loop) → uipath-agentsuipath-coded-appsDetect an existing project by its signals before doing anything; for a new project the language follows the caller's stack.
| Python | JS/TS | |
|---|---|---|
| Scaffold | uip function new <NAME> -l py (-l py required) | uip function new <NAME> -l ts / -l js (ts is the CLI default) |
| Project signals | pyproject.toml + uipath.json functions map | package.json + uipath.json functions map |
| Contracts | Pydantic BaseModel / @dataclass Input/Output | defineSchema<T>() (TS) / JSON Schema literal (JS) |
| Entrypoints | "main": "main.py:<fn>", generated by uip function init | functions/<FILE>.ts:default, auto-synced; no init |
| Calling mode | run-as-job (Maestro, agents, Orchestrator API) | one declared mode: HTTP endpoint or run-as-job — never both |
| Local dev | uip function run | uip function serve (HTTP on :7070) / uip function run (one-shot job) |
| References | references/python/ | references/js/ |
Job-startable functions are invoked from Maestro BPMN/Flow (Service Task), coded agents (as a tool or step), other functions, the Orchestrator API (POST /Jobs/StartJobs), or schedules/triggers. A JS/TS HTTP-mode function is instead called synchronously through its Orchestrator HTTP trigger (references/js/http-semantics-guide.md).
uipath-agents.functions map in uipath.json identifies the project as a Coded Function — it is the marker every tool reads.uip login --organization "<ORG>" --tenant "<TENANT>" --output json.uip is connectors builder. A direct call with a key from an Orchestrator asset is allowed (custom-auth API calls are in scope) but needs a stated reason: the asset keeps the secret safe, but the integration stays out of uip is connections list and cannot be re-pointed per environment.UiPath() must never be instantiated at module level — lazy singleton inside a getter.error_type/error_message output fields; never let exceptions bubble out of the entrypoint.uip function init must run before pack or push — it generates entry-points.json and project.uiproj and creates bindings.json as an empty skeleton when the file is absent; re-run after any schema or entrypoint change. It never derives bindings from code (Rule 7).BaseModel, pydantic.dataclasses.dataclass, stdlib @dataclass, or a thin typed class; apply @traced(name=..., run_type="uipath") to the entrypoint for LLM Ops Traces.pyproject.toml needs authors (else pack rejects: Project authors cannot be empty) and no [build-system] section.uip function new -l py produces a function scaffold — uipath.json with a functions map, no langgraph.json — regardless of any agent framework package (uipath-langchain, uipath-llamaindex, uipath-openai-agents) installed in the venv.uipath SDK calls — never left empty, never guessed. init leaves "resources": []. Every sdk().assets / queues / processes / buckets / context_grounding / connections / mcp / tasks call needs a matching bindings.json entry, produced by the sync workflow in references/python/bindings-reference.md. Without it the project packs and publishes cleanly, surfaces no resource for mapping at deploy time, and fails at runtime. uip function push resolves the entries against the Resource Catalog exactly as uip codedagent push does.uv.lock, and only its CI reads that list. Lock the package, run the pre-check, then ask once with AskUserQuestion. Open no pull request without a yes. A yes covers the policy pull request only. If gh or Python is not available, as in Studio Web, name the package, tell the user to run the pre-check and follow the pull request and submit steps of the guide on a developer machine, and do not offer the pull request. See community-node-dependencies-guide.FunctionError, never plain Error. A plain throw is always a generic 500 (JsCodedFunction.HandlerError) that leaks the raw stack; FunctionError(message, status) carries an author-controlled status (pass errorCode in options to set the job error code). Argument order is (message, status). See error handling.defineSchema<T>() over interfaces (TS, lowered at build time) or a bare JSON Schema literal (JS). Do not use zod/arktype/valibot for new functions — they break static contract extraction and add a runtime dependency. No $ref, any, bigint, or tuples; the schema literal must be static.defineFunction per file, directly under functions/. Helper modules are _-prefixed (functions/_helpers.ts). method + path together or neither — the pair selects the function's single calling mode: HTTP endpoint or plain run-as-job, never both. Logic needed on both surfaces gets two thin functions sharing a _-helper..ts extension (./_helpers.ts). Extensionless imports resolve in local dev but hang the whole runtime at production cold start, with no logs.dependencies, public npm only; the SDK stays in devDependencies. Production runs npm install --omit=dev at cold start — a runtime import from devDependencies or a private registry crashes/hangs the function. Regenerate the lockfile after any dependency change; a stale package-lock.json fails every route with errorCode 4801.303 to a polling URL without CORS: a browser caller loses the result permanently, and recovering it server-side via the redirect is undocumented. Use AbortSignal.timeout(...) on every external call; move longer work to a run-as-job function.body: '{}' — the gateway rejects an empty body with 400 errorCode 4804 (local serve does not, so the bug only appears in production).ctx.user.accessToken = the caller's token (delegated, caller's folder permissions); ctx.robot.accessToken = the function's own robot identity (S2S, privileged reads). ctx.robot is always null under local serve (ctx.user only when no Bearer token is sent) — fall back to process.env["UIPATH_ACCESS_TOKEN"].ctx.platform (baseUrl, orgId, tenantId, folderKey), never from input fields — caller-controlled URLs are a redirect risk. Env vars (UIPATH_BASE_URL, UIPATH_ORG_ID, UIPATH_TENANT_ID) are the local-only fallback.logger.* reaches Orchestrator job logs. console.* prints locally and is not forwarded.Buffer. Use Uint8Array, TextEncoder, TextDecoder.uip function publish, manually update the Function Release in Orchestrator (Automations → Processes) — triggers only sync to the new version once the release is updated.uip function run is a one-shot job execution, not an HTTP call. To exercise the HTTP surface locally, curl/fetch against the serve server — no CLI subcommand invokes a route for you.uipath-extensions.json at the project root): a runtime package that fails the dependency policy is a question for the user, not a stop. The submit-time dependency-policy gate blocks a runtime dependency unless its name is on the allow list, or it is an @uipath/ package and the node's publisher is trusted. An ordinary Function can still use any public npm package (a private package fails at cold start). Tell the user before you write code around the package, then ask once with AskUserQuestion: open a draft policy pull request (recommended), write the logic without the library, or stop. Open no pull request and edit no allow list file without a yes. A yes covers the policy pull request only. If gh is not available, as in Studio Web, name the package, tell the user to follow the pull request and submit steps of the deployment guide on a developer machine, and do not offer the pull request. Never move the package to devDependencies (production skips it). See deployment-guide.uip function new <NAME> -l py # scaffold a Python function project
# author: Pydantic Input/Output + @traced entrypoint, lazy UiPath() singleton, errors returned not raised
uip function init # generate entry-points.json / project.uiproj; bindings.json starts empty
# sync bindings.json from the SDK resource calls — references/python/bindings-reference.md
uip function run <ENTRYPOINT> '{"document_id": "42"}'
uip function pack && uip function publish
From a solution root (directory holding a .uipx), new creates <NAME>/ — cd <NAME> before init. Elsewhere it scaffolds into the current directory. init, run and pack run through the Python environment uip function setup bound: that environment needs uipath installed; re-run uip function setup --force after switching venv.
Full workflow (schema, template, uipath.json registration, pyproject.toml, SDK capabilities, attachments, packOptions): references/python/workflow-guide.md.
uip function new <NAME> -l ts # or -l js; --empty for no sample
# author: one default-exported defineFunction per functions/ file — method+path for HTTP, neither for run-as-job
uip function serve # HTTP on :7070, hot reload; test with curl
uip function run --function <NAME> --input '{}' # one-shot local job execution
uip function pack && uip function publish # then update the Function Release in Orchestrator
// functions/invoice.ts
import { defineFunction, defineSchema, FunctionError } from "@uipath/coded-functions-js-sdk";
interface Input {
invoiceId: string;
/** @default 0 */
amount?: number;
}
interface Output {
approved: boolean;
}
export default defineFunction({
name: "approve-invoice",
method: "POST",
path: "/invoice", // omit method+path entirely for a run-as-job function
input: defineSchema<Input>(),
output: defineSchema<Output>(),
handler: async (input, ctx) => {
if (!ctx.user?.accessToken) throw new FunctionError("Unauthorized", 401);
return { approved: input.amount! < 10_000 }; // success data only — errors are thrown
},
});
Authoring detail, local dev, HTTP semantics, deployment, bindings, Coded App wiring: references/js/ (navigation below).
uip function new <NAME> -l py|ts|js [--empty] # scaffold (TypeScript default; --empty is JS/TS only)
uip function init # Python only — entry-points.json, project.uiproj, empty bindings.json skeleton
uip function serve [--port 7070] [--runtime node|deno] # JS/TS only — local HTTP server, hot reload
uip function run # both languages — one-shot local execution
uip function pack [--nolock] # build the .nupkg
uip function publish [--feed-id <FEED_ID>] # upload package to a process feed
uip function push --project-id <PROJECT_ID> [--ignore-resources] # sync sources to Studio Web and import bindings.json resources
uip function runtime-install # JS/TS — one-time runtime pre-install (otherwise downloaded on first serve/run)
The retired plural spelling (
functions) is not available — always write the singularuip function.
| I need to… | Read |
|---|---|
| Python: full workflow — scaffold, schema, template, registration, dependencies, init, SDK calls, attachments, pack | python/workflow-guide.md |
Python: derive and sync bindings.json from SDK resource calls — per-resource schema, SubType, entrypoint binding, what push does | python/bindings-reference.md |
| Python: community node — allow list pre-check, ask before you add a package | python/community-node-dependencies-guide.md |
| JS/TS: write handlers, contracts, ctx, errors, logging | js/authoring-guide.md |
| JS/TS: run and test locally (serve, run, env, tokens) | js/local-dev-guide.md |
| JS/TS: routing, status codes, deployed limits | js/http-semantics-guide.md |
| JS/TS: run-as-job mode, fault semantics | js/job-mode-guide.md |
| JS/TS: pack, publish, invoke in prod, solutions, cold start | js/deployment-guide.md |
| JS/TS: bindings — entry-points.json, bindings_v2.json, overrides | js/bindings-guide.md |
| JS/TS: call UiPath APIs from a function (uipath-typescript, IS) | js/calling-uipath-apis-guide.md |
| JS/TS: wire a Coded App frontend to a function backend | js/coded-app-wiring-guide.md |
UiPath() at module level — always a lazy singleton inside a getter (Python Rule 1).uip function init after a schema change — stale entry-points.json ships wrong contracts (Python Rule 3).bindings.json with "resources": [] while the code calls SDK resources — init only creates the skeleton; derive the entries (Python Rule 7).throw new Error("…") — generic 500, raw stack leaked, no author-controlled status — JS Rule 1.errors[] array inside a 200. Output schemas carry success data only; a function throws one error at a time.devDependencies or on a private registry — skipped or unfetchable at cold start — JS Rule 5.server.proxy to the Coded App's Vite config to reach the function — it breaks the app's OAuth callback; fetch http://localhost:7070/<PATH> directly (serve sends CORS *).baseUrl/orgId/tenantId as function input — redirect risk; use ctx.platform — JS Rule 9.api.<HOST> subdomain.console.log for production diagnostics — never reaches job logs — JS Rule 10.assets/solutions/metadata.json (opens in a new tab)references/js/authoring-guide.md (opens in a new tab)references/js/bindings-guide.md (opens in a new tab)references/js/calling-uipath-apis-guide.md (opens in a new tab)references/js/coded-app-wiring-guide.md (opens in a new tab)references/js/deployment-guide.md (opens in a new tab)references/js/http-semantics-guide.md (opens in a new tab)references/js/job-mode-guide.md (opens in a new tab)references/js/local-dev-guide.md (opens in a new tab)references/python/bindings-reference.md (opens in a new tab)references/python/community-node-dependencies-guide.md (opens in a new tab)references/python/workflow-guide.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub uipath/skills --plugin uipath34 skills in this plugin
/uipath-a2a-agentsUiPath Agent Gateway A2A agents (`uip agenthub remote-a2a-agent` / `remote-a2a-agent-user-connections`). Add an external A2A agent (Salesforce Agentforce, Microsoft Foundry, any agent that publishes an agent card) from its card link or card JSON; sign it in with an OAuth Agent 2 Agent connection or with headers from Orchestrator assets; give a person their own Agent 2 Agent connection; change it, refresh its card, show it or remove it. Agents and Maestro flows can then call it. For calling an A2A agent from a flow→uipath-maestro-flow. For MCP servers→uipath-mcp-servers./uipath-activity-migratorUiPath Activity Migrator — migrate Windows-Legacy RPA projects (`targetFramework: Legacy`, classic `ui:` activities) to the Windows framework and rewrite UiPath's own classic activities into their modern UiPath counterparts with `uip rpa project migrate`/`UiPath.Upgrade.exe`. Windows only. Third-party or custom packages are not rewritten, only version-moved. Acquires the tool, resolves the target UIAutomation line, runs analyze then upgrade into a sibling folder, verifies with `uip rpa build`, triages the SARIF. Classic UI Automation→modern UIA, Outlook classic→Microsoft 365, GSuite classic→modern, Microsoft.Activities.Extensions→Invoke Code. Also the post-migration fix for migrated projects whose expression-selector targets fail or silently report not-found. Authoring or editing Legacy `.xaml`→uipath-rpa. Migration-readiness review without running the tool→uipath-review. Post-migration failures with neither marker nor annotation→uipath-troubleshoot. Maestro `instance migrate`→the Maestro skills./uipath-adminUiPath Admin via `uip admin` — Identity Server (users, groups, robot accounts, external OAuth2 apps, secrets, PATs, SMTP), Authorization (custom roles, role assignments, permission catalog, effective-access check-access PDP), OMS (org read/update, tenant lifecycle, service provisioning, regions, async op polling), IP Restriction (allowlist, enforcement, bypass rules, lockout safety), and Audit via `uip admin audit` (event sources, paginated queries, JSON-folder or CSV export, exclusion rules). Troubleshoot access-denied, login failures, role misconfig, IP lockout, PAT/app auth. Owns ALL org/tenant/identity audit — use `uip admin audit`, NOT `uip or audit-logs`, for any audit logs / audit trail / audit events / export / login history / who-did-what request. Also owns audit exclusion rules: stop, suppress, or mute recording of chosen audit events (`audit org exclusions`). Orchestrator-specific roles/permissions/folders/jobs→uipath-platform. RPA workflows→uipath-rpa./uipath-agentsUiPath Agents of all types — end-to-end work: build, integrate with UiPath Products (e.g., Orchestrator, Flow, Maestro), design with UiPath Tools (e.g., Agent Builder/Studio Web), deploy, and configure/validate. Covers Coded Agents (e.g., LangGraph, LlamaIndex, OpenAI Agents) and Low-Code Agents (`agent.json` / Agent Builder). For deterministic Coded Functions — Python or JS/TS (`uip function`, `uipath.json` functions map, no agent runtime/LLM)→uipath-functions./uipath-aopsUiPath StudioAdmin AOps (`uip aops`) — SourceControl discovery plus CICD pipelines. Drives `aops connection` / `repo` / `project` / `solution` to resolve a GitHub or Azure source binding, `aops pipeline processes` to pick an already-published Orchestrator process, then composes a PipelineDto for `pipeline create` / `save-and-run` and follows runs via `aops execution logs --follow`. Replaces the retired `uip sc` and `uip cicd` tools. For AOps governance policies (`uip gov aops-policy`)→uipath-governance. For `uip solution pack/publish/deploy`→uipath-platform. For workflow authoring (.xaml/.cs)→uipath-rpa./uipath-api-workflowUiPath API Workflow assistant — author, run, validate, package, publish, deploy, and troubleshoot JSON workflows for `uip api-workflow`. Load for ANY create/edit of a `Workflow.json` / API workflow project; with `evals/` present, tests come first (TDD). Covers Sequence, Assign, JavaScript, If (#Wrapper/#Then/#Else), ForEach, DoWhile, Break, TryCatch, Wait, Response, nested; files as JobAttachment refs via File to Base64 / Base64 to File (`$helpers.file.*`, `serializeData()`, `--input-file`/`--output-dir`); HTTP / IS connector activities via `uip api-workflow registry`. Operate: run, IS connections, pack/publish/deploy. Test/eval: `evals/*/eval-sets/` datasets (exact-match, Evaluations panel); loop until green. Triggers on API workflows, project type `Api`, JSON with `document.dsl`/`do[]`, those activity types, or file/base64 handling. Agent evals (`evals/eval-sets/`, no scope) & coded agents→uipath-agents. Flow & its evals→uipath-maestro-flow. .xaml/coded RPA→uipath-rpa. Coded Apps→uipath-coded-apps.Other plugins' skills for the same job