next_path
Determine the correct folder and next versioned filename for edits, thumbnails, or library assets before writing, and get the user's step rules once per chat.
Instructions
The path for a new file: the right folder and the next version. kind=edit: /edits/-vN.mp4. kind=thumbnail: /thumbnails/-vN.png (the edit's name, plus an option word for several). kind=library: /assets//-vN.. Call it before you write any of these. For edit and thumbnail it also gives the user's rules for that step once per chat: follow them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ext | No | File extension. Default .mp4 for edit, .png for thumbnail; required for library. | |
| kind | Yes | edit, thumbnail or library. | |
| name | Yes | Short name, e.g. 'webmcp-short' or 'logo-mark'. A -vN suffix is ignored. | |
| group | No | kind=library: Logos, Icons, Images, Motion, or another one-word group. | |
| library | No | A library: 'style:<Name>' for one of the user's styles (e.g. 'style:Magazine'; a new name makes a new style), a project name for that project's own additions, or 'comments' for the comment copilot's files (lessons, target list, style guide). | |
| session | No | Session as 'Project/folder', an absolute path, or its id (from get_session). An old path still works after a rename or move. |