Start local coding agent
agent_startStarts one discovered local coding Agent in the selected project and returns a persistent agent_id plus its underlying PID and process_session_id. Use agent_list first. Isolation: none / existing_workspace (default) / git_worktree (P2: create an isolated Git worktree + no-track branch, then start the Agent there) / windows_write_restricted (P7 S3: sandbox-user Agent, write-restricted to project_path). 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": {
"provider_id": "<provider_id>",
"project_path": "<project_path>"
},
"name": "agent_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | No | Target computer device_id. Omit when only one computer is paired. | |
| device_name | No | Computer name or ailinkany.com remark (e.g. home PC). Prefer this when the user names a computer. | |
| provider_id | Yes | Provider id returned by agent_list, such as codex. | |
| 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. | |
| project_path | Yes | Absolute existing project directory on the target computer. For isolation_mode=git_worktree this must be inside a Git repository; the Agent cwd becomes the new worktree. | |
| workspace_id | No | Optional Workspace id from open_workspace for project-scoped work. | |
| 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. | |
| isolation_mode | No | Defaults to existing_workspace. Use git_worktree to isolate one Agent into a fresh local worktree + branch. Use windows_write_restricted (Windows only) to run the Agent as a dedicated sandbox user that can write only inside project_path; requires a client with the sandbox set up, otherwise the start is refused (fail-closed). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||