create
Create files, libraries, agents, skills, or workflows in a workspace. For files, supply full content and use // to link to other files.
Instructions
Create a new resource in a workspace. Set type to what you're creating: "file" (needs libraryId + title + complete content), "library" (a context library — needs name), or "agent" / "skill" / "workflow" (need name; a workflow can bundle projectIds, agentIds, skillIds, and tagIds). Always provide full, real content for files — never empty or placeholder.
File linking: to link to another file in the SAME workspace, put // inline in the content — use the target file's UUID (from search/list/get results), not its title. The link renders as the target's title and is indexed automatically on save; the target gains a backlink with no extra step. Add a link only where the text genuinely references an existing file; never invent // for a file that does not exist (it becomes a dangling link). Use get({ type: "file_links", id }) to inspect a file's links and backlinks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name (type=library, agent, skill, workflow) | |
| path | No | File path (type=file) | |
| type | Yes | Resource type to create. (Tags are not created here — a tag exists by adding a #<value> token to a file's content; use manage_relationship type=tag to tag a file.) | |
| title | No | Title (type=file) | |
| tagIds | No | Workflow tag IDs (type=workflow) | |
| content | No | Full file content — must be complete (type=file) | |
| agentIds | No | Agent IDs (type=workflow) | |
| folderId | No | Folder ID (type=file) | |
| skillIds | No | Skill IDs (type=workflow) | |
| isPrivate | No | Workflow visibility (type=workflow). Defaults to true — visible only to you until shared. Set false to share with the whole team. | |
| libraryId | No | Library ID (type=file) | |
| projectIds | No | Workflow library IDs (type=workflow) | |
| description | No | Description (type=library, agent, skill, workflow) | |
| workspaceId | No |