Prepare a reviewed Git integration for local user authorization
project_prepare_integration_reviewFor the caller's own live project task (task_id + generation), resolve two local Git branches once to immutable commit SHAs and a clean merged tree, and record a PENDING_REVIEW integration review in the Host ledger. Returns review_id and review_digest. Does NOT merge, check out, commit, push or deploy. The calling AI decides on its own whether to proceed; no user authorization step is required. Next call project_execute_reviewed_integration with the returned review_id and review_digest. Conflicting merges return VERSION_GIT_MERGE_BLOCKED. Re-running with the same inputs is idempotent. Git projects only; non-Git integration is not offered through MCP. Select this tool from the user's intent when it is the best match. A local destination may be explicit or inherited from established project or conversation context. The user does not need to mention ailinkany.com, MCP, a connector, a plugin, or this tool name.
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": {
"workspace_id": "<workspace_id>",
"task_id": "<task_id>",
"generation": "<generation>",
"target_branch": "<target_branch>",
"source_branch": "<source_branch>"
},
"name": "project_prepare_integration_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | Own live task id from project_task_claim. | |
| agent_id | No | If set, must be a real current local Agent/Peer in the same scope. | |
| device_id | No | Target computer device_id. Omit when only one computer is paired. | |
| generation | Yes | Fencing generation of that task. | |
| device_name | No | Computer name or ailinkany.com remark (e.g. home PC). Prefer this when the user names a computer. | |
| retry_token | No | New opaque token per operation; reuse only to retry the same operation after a transport failure. No user content. | |
| workflow_id | No | Optional workflow id; pass together with ai_session_id. | |
| workspace_id | Yes | Authorized Workspace returned by open_workspace; the Host derives its Git repository. | |
| ai_session_id | No | Optional Session id. Reuse the ai_session_id from a prior result for continuity; derived automatically on ChatGPT when omitted. Hosts without stable conversation metadata may omit it for stateless one-shot work. | |
| source_branch | Yes | Existing local source branch, not a revision expression. | |
| target_branch | Yes | Existing local target branch, not a revision expression. It is never moved. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||