update
Update any resource type in Contextium by ID, modifying only specified fields. For files, a new version preserves history.
Instructions
Update an existing resource in place by ID — edit a file's title, path, content, or status, or rename/reconfigure an agent, skill, workflow, or project. Only the fields you pass are changed; for files, a new version is created automatically so history is preserved. Set type to the resource kind and id to its UUID (from list/search/get).
File linking (type=file): to link to another file in the SAME workspace, put // inline in the content — use the target's UUID (from search/list/get results), not its title. The link renders as the target's title and is re-indexed on save; backlinks are automatic. To add a backlink to file B, add // to this file's content. Remove a link by deleting its // token. Only link to files that exist. Use get({ type: "file_links", id }) to inspect links and backlinks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Resource ID | |
| name | No | New name (type=agent, workflow, project) | |
| path | No | ||
| slug | No | Slug (type=project) | |
| type | Yes | Resource type to update | |
| title | No | ||
| status | No | ||
| tagIds | No | Tag IDs (type=workflow) | |
| content | No | ||
| agentIds | No | Agent IDs (type=workflow) | |
| folderId | No | ||
| skillIds | No | Skill IDs (type=workflow) | |
| isPrivate | No | Workflow visibility (type=workflow). true = only you, the workspace owner/admin, and explicitly-shared members can see it. false = visible to the whole team. | |
| projectId | No | Move file to different library (type=file) | |
| projectIds | No | Library IDs (type=workflow) | |
| description | No | New description (type=agent, workflow, project) | |
| workspaceId | No | ||
| systemPrompt | No | System prompt (type=agent) | |
| changeSummary | No | ||
| createVersion | No | Create version history entry (default true) | |
| customContext | No | Custom context (type=agent) |