Restore agent activity
restore_agent_activityBring ONE retired activity back onto an agent's plan (the inverse of remove_agent_activity and split_agent_activity): the entry moves from jd_content.archived_activities back to the live plan with only its archive markers removed. Use when the operator asks to bring back, un-retire or restore an activity, or to undo a remove or a split. If it had been split, the pieces it was split into are retired in the same call. Refuses if an activity with that name is already live — nothing is overwritten.
Routing: Operator says bring back / un-retire / restore an activity → this with the exact retired name. Something new → add_agent_activity.
[write-tier — first use may require a manager's approval; a from-now-on approval makes future calls seamless, a just-once approval re-asks next time. Call it on the first clear ask; the card is the yes — do not re-ask in chat.]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | No | UUID of the agent. Optional if agent_name is provided. | |
| companyId | Yes | FreedomOS company id to act within (you must be a member). Required for company-scoped tools. | |
| agent_name | No | Name of the agent. Provide this or agent_id. | |
| activity_name | Yes | EXACT (case-insensitive) name the activity had when it was retired. | |
| remove_pieces | No | When the activity was archived by a split: also retire the pieces it was split into (default true — one call undoes the split). |