Skip to main content
Glama

NewsDigest MCP

by SomeiLam

move_file

Relocate TypeScript/JavaScript files to a new directory and automatically update all associated import statements to maintain code integrity.

Instructions

Move a TypeScript/JavaScript file to a new location and update all import statements

Input Schema

NameRequiredDescriptionDefault
newPathYesNew file path (relative to root)
oldPathYesCurrent file path (relative to root)
overwriteNoOverwrite the destination file if it exists
rootYesRoot directory for resolving relative paths

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "newPath": { "description": "New file path (relative to root)", "type": "string" }, "oldPath": { "description": "Current file path (relative to root)", "type": "string" }, "overwrite": { "default": false, "description": "Overwrite the destination file if it exists", "type": "boolean" }, "root": { "description": "Root directory for resolving relative paths", "type": "string" } }, "required": [ "root", "oldPath", "newPath" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SomeiLam/news-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server