mqscript_file_delete
Remove files from mobile devices during automation to manage storage and clean up temporary data generated by MQScript mobile automation processes.
Instructions
Delete file
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | File path to delete |
Implementation Reference
- src/tools/plugin-commands.ts:425-436 (handler)The async handler function that implements the core logic of the mqscript_file_delete tool. It receives the filePath argument, constructs an MQScript 'File.Delete' command string, and returns a formatted text response describing the generated script.handler: async (args: { filePath: string }) => { const { filePath } = args; const script = `File.Delete("${filePath}")`; return { content: [ { type: 'text', text: `Generated MQScript file delete command:\n\`\`\`\n${script}\n\`\`\`\n\nThis deletes file "${filePath}".` } ] }; }
- src/tools/plugin-commands.ts:415-424 (schema)The inputSchema defining the structure and requirements for the tool's arguments, specifying that 'filePath' (string) is required.inputSchema: { type: 'object' as const, properties: { filePath: { type: 'string', description: 'File path to delete' } }, required: ['filePath'] },
- src/tools/plugin-commands.ts:412-437 (registration)The complete definition of the mqscript_file_delete tool object (including name, description, schema, and handler), which is exported as part of FileCommands and spread into the global ALL_TOOLS registry for MCP server registration.delete: { name: 'mqscript_file_delete', description: 'Delete file', inputSchema: { type: 'object' as const, properties: { filePath: { type: 'string', description: 'File path to delete' } }, required: ['filePath'] }, handler: async (args: { filePath: string }) => { const { filePath } = args; const script = `File.Delete("${filePath}")`; return { content: [ { type: 'text', text: `Generated MQScript file delete command:\n\`\`\`\n${script}\n\`\`\`\n\nThis deletes file "${filePath}".` } ] }; } },
- src/index.ts:57-60 (registration)The spreading of FileCommands (containing mqscript_file_delete) into the ALL_TOOLS object used by the MCP server for tool listing and execution....CJsonCommands, ...DateTimeCommands, ...FileCommands, ...TuringCommands,