remove_agent_activity
Retire ONE activity from an agent's plan. Soft-archive (recoverable): the activity is MOVED to jd_content.archived_activities and removed from the live plan, so the agent stops running it. Never hard-deletes.
[sensitive-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.]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional reason for retiring (recorded on the archive + audit log). | |
| 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 | No | EXACT (case-insensitive) name of the activity to retire. Provide this or activity_index. | |
| activity_index | No | 0-based index into the activity plan. Alternative to activity_name. |