Skip to main content
Glama

copy

Copy files or directories to new locations with atomic writes, permission preservation, and recursive directory structure. Use dry-run to preview changes before copying.

Instructions

Copies a file or directory to a new location. File copy uses atomic write (temp file + rename) and preserves permissions. Directory copy recreates the full directory structure recursively. Use dry_run=true to preview what would be copied without doing it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYesAbsolute path to the source file or directory,required
destinationYesAbsolute path to the destination,required
overwriteNoOverwrite existing destination. Default: false
dry_runNoPreview what would be copied without doing it (default false)

Latest Blog Posts

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/knewstimek/agent-tool'

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