paperclip_create_routine
Create a scheduled routine for an agent, specifying title, assignee, concurrency policy, and catch-up policy for missed runs.
Instructions
Create a new routine for an agent. Add triggers separately with paperclip_add_routine_trigger.
Args:
assigneeAgentId: string — Agent UUID to run the routine (example: "agt_abc123")
title: string — Routine title (example: "daily-standup")
description: string (optional) — Routine description
concurrencyPolicy: string (optional) — allow | forbid | replace (default: forbid)
catchUpPolicy: string (optional) — skip | run_once for missed runs
Returns: Returns the created routine object: id, title, assigneeAgentId, triggers:[], createdAt.
Examples:
Use when: setting up a scheduled workflow for an agent before adding a cron trigger
Don't use when: you want to trigger immediately — use paperclip_run_routine after creating the routine
Error Handling:
400: validation failure → ensure title and assigneeAgentId are non-empty
401: authentication failed → check PAPERCLIP_API_KEY
404: assigneeAgentId not found → verify with paperclip_list_agents
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assigneeAgentId | Yes | Agent UUID to run the routine | |
| title | Yes | Routine title | |
| description | No | Routine description | |
| concurrencyPolicy | No | Concurrency policy (e.g. allow, forbid, replace) | |
| catchUpPolicy | No | Catch-up policy for missed runs (e.g. skip, run_once) |