Skip to main content
Tools to list and create branches, compare them and merge one branch into another.

list_branches

List branches. Branches with head_sha.
Read only: changes nothing. Confirmation belongs to the AI client; scopes and blocks still apply.

Parameters

string
required
Script ID (uuid)

What it calls in the API

Por baixo, a ferramenta usa GET /scripts/{script_id}/repo/branches da API do Scripts. The response includes text and structuredContent, with secrets removed.

Example

create_branch

Create branch. Creates a branch from a commit (default: head of main).
Writes or changes script data. Confirmation belongs to the AI client; scopes and blocks still apply.

Parameters

string
required
Script ID (uuid)
string
required
Name
string
Source SHA

What it calls in the API

Por baixo, a ferramenta usa POST /scripts/{script_id}/repo/branches da API do Scripts. The response includes text and structuredContent, with secrets removed.

Example

compare_branches

Compare. Shows what would change and whether merging source into target conflicts (writes nothing).
Read only: changes nothing. Confirmation belongs to the AI client; scopes and blocks still apply.

Parameters

string
required
Script ID (uuid)
string
required
Source branch
string
Target (default: main)

What it calls in the API

Por baixo, a ferramenta usa POST /scripts/{script_id}/studio/merge da API do Scripts. The response includes text and structuredContent, with secrets removed.

Example

merge_branch

Merge. Merges source into target. Stops on conflict.
Writes or changes script data. Destructive action: review in your AI client before confirming. Confirmation belongs to the AI client; scopes and blocks still apply.

Parameters

string
required
Script ID (uuid)
string
required
Source branch
string
Target (default: main)
string
Message

What it calls in the API

Por baixo, a ferramenta usa POST /scripts/{script_id}/studio/merge da API do Scripts. The response includes text and structuredContent, with secrets removed.

Example