rename_folder
Change the name of a folder or category in your FreshRSS feed reader by specifying the current and new names.
Instructions
Rename a folder/category
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| oldName | Yes | Current name of the folder/label | |
| newName | Yes | New name for the folder/label |
Implementation Reference
- src/handlers/tag-handlers.ts:88-98 (handler)Implementation and registration of the 'rename_folder' tool in the registerTagTools function.
server.registerTool( 'rename_folder', { description: 'Rename a folder/category', inputSchema: renameTagSchema, }, wrapTool('rename_folder', async (args: z.infer<typeof renameTagSchema>) => { await client.tags.rename(args.oldName, args.newName); return textResult(`Renamed folder "${args.oldName}" to "${args.newName}".`); }) ); - src/tools/tag-tools.ts:16-21 (schema)Schema definition for renaming folders or labels.
export const renameTagSchema = z .object({ oldName: z.string().describe('Current name of the folder/label'), newName: z.string().describe('New name for the folder/label'), }) .strict();