Create Space Repository Link Tool
create-space-repository-linkUse this when the user wants to link an authorized provider repository to a Space for Autopilot sync. After authorization, this state-changing external action creates the link with triggers, path filters, notifications, or auto-apply settings and requires Enterprise access.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"space_id": "<space_id>",
"provider": "<provider>",
"repository_identifier": "<repository_identifier>",
"branch": "<branch>",
"trigger_events": "<trigger_events>",
"notify_on_new_suggestions": "<notify_on_new_suggestions>",
"notification_channels_input": "<notification_channels_input>",
"auto_apply_enabled": "<auto_apply_enabled>",
"auto_apply_threshold_pct": "<auto_apply_threshold_pct>"
},
"name": "create-space-repository-link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | Repository branch name that Autopilot should monitor for this link. | |
| provider | Yes | github, gitlab, bitbucket, or azure. | |
| space_id | Yes | Numeric Space ID where the Autopilot repository link should be created. | |
| path_filters | No | Optional path filters. | |
| trigger_events | Yes | push and/or pr_merge. | |
| auto_apply_enabled | Yes | Enterprise auto-apply flag. | |
| repository_identifier | Yes | Provider repository identifier. | |
| ai_context_instructions | No | Optional AI instructions. | |
| auto_apply_threshold_pct | Yes | Auto-apply threshold percent from 95 to 100. | |
| notify_on_new_suggestions | Yes | Email notification flag. | |
| notification_channels_input | Yes | Notification channel settings. |