工具 API

reset_from_parent

Resets a branch to match its parent's current state, effectively discarding all changes made on the branch. To avoid data loss, provide a name to preserve the changes in a new branch using `preserveUnderName` parameter. This tool is commonly used to create fresh development branches from updated parent branch, undo experimental changes, or restore a branch to a known good state. Warning: This operation will discard all changes if `preserveUnderName` is not provided.

devOAuth1 积分

调用信息

工具标识
mcp-server-neon.reset_from_parent
服务提供方
Neon
平均响应
0 ms
近 7 天调用
0

输入参数

projectId必填

The ID of the project containing the branch

branchIdOrName必填

The name or ID of the branch to reset from its parent

preserveUnderName

Optional name to preserve the current state under a new branch before resetting