| author | |
| committer | |
| log | cb97415948cc2c0662a5504ccfe7e97981825ed5 |
| tree | 4411d72cb76687016cc8b270814f934c59a074ad |
| parent | c9a0e8a119271765196dec38ef91395713da4213 |
| signature | Signed by PGP key B5690EEEBB952194 |
3 files changed, 4 insertions(+), 3 deletions(-)
apps/server/src/mcp/toolkits/device/handlers.ts+1-1| ... | @@ -59,7 +59,7 @@ export function agentDeviceQuickStart( | ... | @@ -59,7 +59,7 @@ export function agentDeviceQuickStart( |
| 59 | ` ${executable} screenshot /tmp/shot.png ${target} # or call device_screenshot`, | 59 | ` ${executable} screenshot /tmp/shot.png ${target} # or call device_screenshot`, |
| 60 | ` ${executable} install <app> <path-to-.app-or-.apk> ${target}`, | 60 | ` ${executable} install <app> <path-to-.app-or-.apk> ${target}`, |
| 61 | `Prefer snapshot refs over coordinates. Run ${executable} help for workflow guides and ${executable} <command> --help for flags.`, | 61 | `Prefer snapshot refs over coordinates. Run ${executable} help for workflow guides and ${executable} <command> --help for flags.`, |
| 62 | "Do not call simctl, adb, xcrun, or serve-sim directly while these tools are attached; use agent-device.", | 62 | "Prefer agent-device for driving this device. simctl, adb, and xcrun remain available for anything it does not cover.", |
| 63 | "For remote hosts, arrange builds, app installation, and any Metro reverse forwarding yourself. T3 provides discovery, streaming, and control only.", | 63 | "For remote hosts, arrange builds, app installation, and any Metro reverse forwarding yourself. T3 provides discovery, streaming, and control only.", |
| 64 | "Keep the returned --config and --session flags on every command. Other hosts can be used concurrently; opening one does not switch these commands.", | 64 | "Keep the returned --config and --session flags on every command. Other hosts can be used concurrently; opening one does not switch these commands.", |
| 65 | platformNotes, | 65 | platformNotes, |
apps/server/src/provider/CodexDeveloperInstructions.ts+1-1| ... | @@ -12,7 +12,7 @@ Do not switch to global browser skills, Chrome, Node REPL browser automation, st | ... | @@ -12,7 +12,7 @@ Do not switch to global browser skills, Chrome, Node REPL browser automation, st |
| 12 | 12 | ||
| 13 | const T3_CODE_DEVICE_TOOL_INSTRUCTIONS = `## T3 Code devices | 13 | const T3_CODE_DEVICE_TOOL_INSTRUCTIONS = `## T3 Code devices |
| 14 | 14 | ||
| 15 | The \`t3-code\` MCP server also exposes \`device_*\` tools for iOS Simulators and Android Emulators on this environment. For mobile verification, call \`device_list\`, then \`device_open\` so the user can watch the device in their Device panel; its result explains how to drive the device. Driving happens through the \`agent-device\` CLI, which is on PATH. Keep the host config and session flags returned by \`device_open\` on every command so concurrent devices stay independent: prefer \`agent-device snapshot -i\` refs over coordinates, and use \`device_screenshot\` when you need to see the screen. Do not call simctl, adb, xcrun, or serve-sim directly while these tools are present. If \`device_list\` reports a platform as unavailable, say so instead of trying another route.`; | 15 | The \`t3-code\` MCP server also exposes \`device_*\` tools for iOS Simulators and Android Emulators on this environment. For mobile verification, call \`device_list\`, then \`device_open\` so the user can watch the device in their Device panel; its result explains how to drive the device. Driving happens through the \`agent-device\` CLI, which is on PATH. Keep the host config and session flags returned by \`device_open\` on every command so concurrent devices stay independent: prefer \`agent-device snapshot -i\` refs over coordinates, and use \`device_screenshot\` when you need to see the screen. Prefer these tools and \`agent-device\` for opening and driving devices. Platform tools such as \`xcrun simctl\` and \`adb\` remain available for anything they do not cover, such as builds, logs, or port forwarding. If \`device_list\` reports a platform as unavailable, say so.`; |
| 16 | 16 | ||
| 17 | export interface T3CodeToolAvailability { | 17 | export interface T3CodeToolAvailability { |
| 18 | readonly browser: boolean; | 18 | readonly browser: boolean; |
docs/internals/devices.md+2-1| ... | @@ -69,7 +69,8 @@ already-running agent without the CLI. | ... | @@ -69,7 +69,8 @@ already-running agent without the CLI. |
| 69 | How to drive a device is returned from `device_open`, not kept in an | 69 | How to drive a device is returned from `device_open`, not kept in an |
| 70 | always-loaded prompt or skill: it costs nothing in threads that never open a | 70 | always-loaded prompt or skill: it costs nothing in threads that never open a |
| 71 | device and cannot drift from the pinned CLI version. The always-on prompt block | 71 | device and cannot drift from the pinned CLI version. The always-on prompt block |
| 72 | is a few lines that point at the tools and forbid raw `simctl` and `adb`. | 72 | is a few lines that point at the tools and prefer them over raw `simctl` and |
| 73 | `adb`, which stay available for what the tools do not cover. | ||
| 73 | 74 | ||
| 74 | ## The viewer decodes both vendored protocols | 75 | ## The viewer decodes both vendored protocols |
| 75 | 76 |