import GboxSDK from "gbox-sdk";const gboxSDK = new GboxSDK({ apiKey: process.env["GBOX_API_KEY"] // This is the default and can be omitted});async function main() { const box = await gboxSDK.create({ type: "android" }); await box.action.tap({ x: 100, y: 100 }); // Natural language tap await box.action.tap({ target: "Chrome" });}main();
import os
from gbox_sdk import GboxSDK
def main():
gbox_sdk = GboxSDK(api_key=os.environ["GBOX_API_KEY"]) # This is the default and can be omitted
# Create Android box
box = gbox_sdk.create(type="android")
# Perform tap action
box.action.tap(x=100, y=100)
# Natural language tap
box.action.tap(target="Chrome")
if __name__ == "__main__":
main()
Tap action for Android devices using ADB input tap command
POST
/
boxes
/
{boxId}
/
actions
/
tap
JavaScript
import GboxSDK from "gbox-sdk";const gboxSDK = new GboxSDK({ apiKey: process.env["GBOX_API_KEY"] // This is the default and can be omitted});async function main() { const box = await gboxSDK.create({ type: "android" }); await box.action.tap({ x: 100, y: 100 }); // Natural language tap await box.action.tap({ target: "Chrome" });}main();
import os
from gbox_sdk import GboxSDK
def main():
gbox_sdk = GboxSDK(api_key=os.environ["GBOX_API_KEY"]) # This is the default and can be omitted
# Create Android box
box = gbox_sdk.create(type="android")
# Perform tap action
box.action.tap(x=100, y=100)
# Natural language tap
box.action.tap(target="Chrome")
if __name__ == "__main__":
main()
Enter your API Key in the format: Bearer . Get it from https://gbox.ai
Path Parameters
boxId
string
required
Box ID
Example:
"c9bdc193-b54b-4ddb-a035-5ac0c598d32d"
Body
application/json
Tap Action
Tap Action with Natural Language
Tap Action by Element
Tap action configuration
x
number
required
X coordinate of the tap
Example:
350
y
number
required
Y coordinate of the tap
Example:
250
options
Action Common Options · object
Action options. When options.screenshot is provided, ALL deprecated screenshot fields (outputFormat, presignedExpiresIn, screenshotDelay, screenshotRange, includeScreenshot) will be completely ignored.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"GBOX docs","colors":{"primary":"#7139ee","light":"#7139ee","dark":"#7139ee"},"logo":{"light":"https://mintcdn.com/gbox-551f8aad/T-DuPp0A8fmxumYw/logo/light.svg?fit=max\u0026auto=format\u0026n=T-DuPp0A8fmxumYw\u0026q=85\u0026s=786e91dc97663517a975e2a4cdd38dc0","dark":"https://mintcdn.com/gbox-551f8aad/T-DuPp0A8fmxumYw/logo/dark.svg?fit=max\u0026auto=format\u0026n=T-DuPp0A8fmxumYw\u0026q=85\u0026s=88533bdebb4759a8f4b0be55f218c270"},"favicon":"/favicon.svg","api":{"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["javascript","python","curl"]}},"navbar":{"links":[{"label":"Support","href":"mailto:connect@gbox.ai"},{"label":"Blog","href":"https://blog.gbox.ai"}],"primary":{"type":"button","label":"Try it now","href":"https://gbox.ai"}},"footer":{"socials":{"github":"https://github.com/babelcloud","x":"https://x.com/gboxai","youtube":"https://www.youtube.com/channel/UCY0nIeSubQ7jmE1jqnSUDmA","linkedin":"https://www.linkedin.com/company/gbox-ai"}},"contextual":{"options":["copy","view","chatgpt","claude"]},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"gbox-551f8aad","hasAudioNarration":false,"actualSubdomain":"gbox-551f8aad","customDomains":["docs.gbox.ai"],"gitSource":{"type":"github","owner":"babelcloud","repo":"gbox-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ae9292db138cc6bcc8af591:success","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"API Reference","count":79},{"language":"default","tag":"UI Action","count":26},{"language":"default","tag":"Android","count":17},{"language":"default","tag":"Guides","count":16},{"language":"default","tag":"Box","count":13},{"language":"default","tag":"Media","count":10},{"language":"default","tag":"Browser","count":9},{"language":"default","tag":"Integrations","count":9},{"language":"default","tag":"File System","count":7},{"language":"default","tag":"Run Code","count":6}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"[data-component-part=\"code-group-tab-bar\"] img{background-color:transparent!important}img[src*=\"shields.io\"]{display:inline!important;vertical-align:middle;margin:0;padding:0}"}]}
{"page":{"pagePath":"api-reference/ui-action/tap","slug":"/api-reference/ui-action/tap","pageMetadata":{"openapi":"post /boxes/{boxId}/actions/tap","title":"Tap","description":"Tap action for Android devices using ADB input tap command","href":"/api-reference/ui-action/tap"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Tap action for Android devices using ADB input tap command\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"post /boxes/{boxId}/actions/tap","title":"Tap","description":"Tap action for Android devices using ADB input tap command","href":"/api-reference/ui-action/tap"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/gbox-551f8aad/34a2119a7f5640ae/.lintstagedrc.js","/_mintlify/custom/gbox-551f8aad/a6375ba38a2d9939/eslint.config.js"],"openApiReferenceData":{"operation":{"description":"Tap action for Android devices using ADB input tap command","operationId":"UIActionController_tap","parameters":["6d4d753d-b6bb-48c7-b92a-2965a00f2d50"],"requestBody":"8f2fe0c1-b007-4df7-8c0a-6147f5372cda","responses":{"200":"8fb3a4ed-b0f0-4ea7-9d4c-2a7c9c746334"},"security":["a68030ec-91e4-4362-b54e-f5f4ddd16fcd"],"summary":"Tap","tags":["UI Action"],"x-codeSamples":[{"lang":"JavaScript","source":"import GboxSDK from \"gbox-sdk\";\n\nconst gboxSDK = new GboxSDK({\n apiKey: process.env[\"GBOX_API_KEY\"] // This is the default and can be omitted\n});\n\nasync function main() {\n const box = await gboxSDK.create({ type: \"android\" });\n\n await box.action.tap({\n x: 100,\n y: 100\n });\n\n // Natural language tap\n await box.action.tap({\n target: \"Chrome\"\n });\n}\n\nmain();"},{"lang":"Python","source":"import os\nfrom gbox_sdk import GboxSDK\n\n\ndef main():\n gbox_sdk = GboxSDK(api_key=os.environ[\"GBOX_API_KEY\"]) # This is the default and can be omitted\n\n # Create Android box\n box = gbox_sdk.create(type=\"android\")\n\n # Perform tap action\n box.action.tap(x=100, y=100)\n\n # Natural language tap\n box.action.tap(target=\"Chrome\")\n\n\nif __name__ == \"__main__\":\n main()"},{"lang":"Go","source":"package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/gbox/gbox-sdk-go\"\n)\n\nfunc main() {\n\tgboxSDK := gbox.NewGboxSDK(os.Getenv(\"GBOX_API_KEY\"))\n\n\tbox, err := gboxSDK.Create(context.Background(), gbox.CreateBoxRequest{\n\t\tType: \"android\",\n\t})\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to create box: %v\", err)\n\t}\n\n\terr = box.Action.Tap(context.Background(), gbox.TapRequest{\n\t\tX: 100,\n\t\tY: 100,\n\t})\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to perform tap action: %v\", err)\n\t}\n\n\t// Natural language tap\n\terr = box.Action.Tap(context.Background(), gbox.TapRequest{\n\t\tTarget: \"Chrome\",\n\t})\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to perform tap action: %v\", err)\n\t}\n}"}],"method":"post","type":"path","servers":["f0957f46-1012-4379-83b5-d47a11963c67"],"path":"/boxes/{boxId}/actions/tap","baseUrlOptions":["https://gbox.ai/api/v1"],"title":"Tap","codeSamples":[{"lang":"JavaScript","source":"import GboxSDK from \"gbox-sdk\";\n\nconst gboxSDK = new GboxSDK({\n apiKey: process.env[\"GBOX_API_KEY\"] // This is the default and can be omitted\n});\n\nasync function main() {\n const box = await gboxSDK.create({ type: \"android\" });\n\n await box.action.tap({\n x: 100,\n y: 100\n });\n\n // Natural language tap\n await box.action.tap({\n target: \"Chrome\"\n });\n}\n\nmain();"},{"lang":"Python","source":"import os\nfrom gbox_sdk import GboxSDK\n\n\ndef main():\n gbox_sdk = GboxSDK(api_key=os.environ[\"GBOX_API_KEY\"]) # This is the default and can be omitted\n\n # Create Android box\n box = gbox_sdk.create(type=\"android\")\n\n # Perform tap action\n box.action.tap(x=100, y=100)\n\n # Natural language tap\n box.action.tap(target=\"Chrome\")\n\n\nif __name__ == \"__main__\":\n main()"},{"lang":"Go","source":"package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/gbox/gbox-sdk-go\"\n)\n\nfunc main() {\n\tgboxSDK := gbox.NewGboxSDK(os.Getenv(\"GBOX_API_KEY\"))\n\n\tbox, err := gboxSDK.Create(context.Background(), gbox.CreateBoxRequest{\n\t\tType: \"android\",\n\t})\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to create box: %v\", err)\n\t}\n\n\terr = box.Action.Tap(context.Background(), gbox.TapRequest{\n\t\tX: 100,\n\t\tY: 100,\n\t})\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to perform tap action: %v\", err)\n\t}\n\n\t// Natural language tap\n\terr = box.Action.Tap(context.Background(), gbox.TapRequest{\n\t\tTarget: \"Chrome\",\n\t})\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to perform tap action: %v\", err)\n\t}\n}"}],"requestExampleLanguages":["javascript","python","bash"],"requiredOnlyExamples":true,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"6d4d753d-b6bb-48c7-b92a-2965a00f2d50":{"name":"boxId","required":true,"in":"path","description":"Box ID","schema":{"example":"c9bdc193-b54b-4ddb-a035-5ac0c598d32d","type":"string","isRequired":true,"description":"Box ID","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"Tap Action","description":"Tap action configuration","required":["x","y"],"properties":{"x":{"type":"number","description":"X coordinate of the tap","example":350,"isRequired":true,"uniqueKey":"oneOf.0.x","typeLabel":"number"},"y":{"type":"number","description":"Y coordinate of the tap","example":250,"isRequired":true,"uniqueKey":"oneOf.0.y","typeLabel":"number"},"options":{"type":"object","title":"Action Common Options","description":"Action options. When `options.screenshot` is provided, ALL deprecated screenshot fields (outputFormat, presignedExpiresIn, screenshotDelay, screenshotRange, includeScreenshot) will be completely ignored.","example":{"screenshot":{"outputFormat":"base64","presignedExpiresIn":"30m","delay":"500ms","phases":["before","after"]}},"properties":{"screenshot":{"oneOf":[{"type":"object","title":"Action Screenshot Options","description":"Screenshot options. Can be a boolean to enable/disable screenshots, or an object to configure screenshot options.","example":{"outputFormat":"base64","presignedExpiresIn":"30m","delay":"500ms","phases":["before","after"]},"properties":{"outputFormat":{"type":"string","enum":["base64","storageKey"],"description":"Type of the URI. default is base64.","default":"base64","example":"base64","uniqueKey":"oneOf.0.options.screenshot.oneOf.0.outputFormat","typeLabel":"enum\u003cstring>"},"presignedExpiresIn":{"type":"string","description":"Presigned url expires in. Only takes effect when outputFormat is storageKey.\n\nSupported time units: ms (milliseconds), s (seconds), m (minutes), h (hours)\nExample formats: \"500ms\", \"30s\", \"5m\", \"1h\"\nDefault: 30m","example":"30m","default":"30m","title":"PresignedExpiresIn","uniqueKey":"oneOf.0.options.screenshot.oneOf.0.presignedExpiresIn","typeLabel":"string"},"delay":{"type":"string","description":"Delay after performing the action, before taking the final screenshot.\n\nExecution flow:\n1. Take screenshot before action\n2. Perform the action\n3. Wait for screenshotDelay (this parameter)\n4. Take screenshot after action\n\nExample: '500ms' means wait 500ms after the action before capturing the final screenshot.\n\nSupported time units: ms (milliseconds), s (seconds), m (minutes), h (hours)\nExample formats: \"500ms\", \"30s\", \"5m\", \"1h\"\nDefault: 500ms\nMaximum allowed: 30s","example":"500ms","default":"500ms","title":"Delay","uniqueKey":"oneOf.0.options.screenshot.oneOf.0.delay","typeLabel":"string"},"phases":{"type":"array","description":"Specify which screenshot phases to capture.\n\nAvailable options:\n- before: Screenshot before the action\n- after: Screenshot after the action\n- trace: Screenshot with operation trace\n\nDefault captures all three phases. Can specify one or multiple in an array.\nIf empty array is provided, no screenshots will be taken.","default":["before","after","trace"],"example":["before","after"],"items":{"type":"string","enum":["before","after","trace"],"uniqueKey":"oneOf.0.options.screenshot.oneOf.0.phases.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"oneOf.0.options.screenshot.oneOf.0.phases","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"oneOf.0.options.screenshot.oneOf.0","typeLabel":"Action Screenshot Options · object"},{"type":"boolean","description":"Screenshot options. Can be a boolean to enable/disable screenshots, or an object to configure screenshot options.","example":true,"uniqueKey":"oneOf.0.options.screenshot.oneOf.1","typeLabel":"boolean"}],"uniqueKey":"oneOf.0.options.screenshot","typeLabel":"Action Screenshot Options · object | boolean"},"model":{"type":"string","description":"Model to use for natural-language target resolution. Defaults to 'uitars'.","enum":["gpt-5","gpt-4o","gelato","ui-tars","openai-computer-use"],"default":"gelato","uniqueKey":"oneOf.0.options.model","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.0.options","typeLabel":"Action Common Options · object"}},"uniqueKey":"oneOf.0","typeLabel":"Tap Action · object"},{"type":"object","title":"Tap Action with Natural Language","description":"Tap action configuration with natural language","required":["target"],"properties":{"target":{"type":"string","description":"Describe the target to operate using natural language, e.g., 'login button' or 'Chrome'.","example":"login button","isRequired":true,"uniqueKey":"oneOf.1.target","typeLabel":"string"},"options":{"type":"object","title":"Action Common Options","description":"Action options. When `options.screenshot` is provided, ALL deprecated screenshot fields (outputFormat, presignedExpiresIn, screenshotDelay, screenshotRange, includeScreenshot) will be completely ignored.","example":{"screenshot":{"outputFormat":"base64","presignedExpiresIn":"30m","delay":"500ms","phases":["before","after"]}},"properties":{"screenshot":{"oneOf":[{"type":"object","title":"Action Screenshot Options","description":"Screenshot options. Can be a boolean to enable/disable screenshots, or an object to configure screenshot options.","example":{"outputFormat":"base64","presignedExpiresIn":"30m","delay":"500ms","phases":["before","after"]},"properties":{"outputFormat":{"type":"string","enum":["base64","storageKey"],"description":"Type of the URI. default is base64.","default":"base64","example":"base64","uniqueKey":"oneOf.1.options.screenshot.oneOf.0.outputFormat","typeLabel":"enum\u003cstring>"},"presignedExpiresIn":{"type":"string","description":"Presigned url expires in. Only takes effect when outputFormat is storageKey.\n\nSupported time units: ms (milliseconds), s (seconds), m (minutes), h (hours)\nExample formats: \"500ms\", \"30s\", \"5m\", \"1h\"\nDefault: 30m","example":"30m","default":"30m","title":"PresignedExpiresIn","uniqueKey":"oneOf.1.options.screenshot.oneOf.0.presignedExpiresIn","typeLabel":"string"},"delay":{"type":"string","description":"Delay after performing the action, before taking the final screenshot.\n\nExecution flow:\n1. Take screenshot before action\n2. Perform the action\n3. Wait for screenshotDelay (this parameter)\n4. Take screenshot after action\n\nExample: '500ms' means wait 500ms after the action before capturing the final screenshot.\n\nSupported time units: ms (milliseconds), s (seconds), m (minutes), h (hours)\nExample formats: \"500ms\", \"30s\", \"5m\", \"1h\"\nDefault: 500ms\nMaximum allowed: 30s","example":"500ms","default":"500ms","title":"Delay","uniqueKey":"oneOf.1.options.screenshot.oneOf.0.delay","typeLabel":"string"},"phases":{"type":"array","description":"Specify which screenshot phases to capture.\n\nAvailable options:\n- before: Screenshot before the action\n- after: Screenshot after the action\n- trace: Screenshot with operation trace\n\nDefault captures all three phases. Can specify one or multiple in an array.\nIf empty array is provided, no screenshots will be taken.","default":["before","after","trace"],"example":["before","after"],"items":{"type":"string","enum":["before","after","trace"],"uniqueKey":"oneOf.1.options.screenshot.oneOf.0.phases.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"oneOf.1.options.screenshot.oneOf.0.phases","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"oneOf.1.options.screenshot.oneOf.0","typeLabel":"Action Screenshot Options · object"},{"type":"boolean","description":"Screenshot options. Can be a boolean to enable/disable screenshots, or an object to configure screenshot options.","example":true,"uniqueKey":"oneOf.1.options.screenshot.oneOf.1","typeLabel":"boolean"}],"uniqueKey":"oneOf.1.options.screenshot","typeLabel":"Action Screenshot Options · object | boolean"},"model":{"type":"string","description":"Model to use for natural-language target resolution. Defaults to 'uitars'.","enum":["gpt-5","gpt-4o","gelato","ui-tars","openai-computer-use"],"default":"gelato","uniqueKey":"oneOf.1.options.model","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.1.options","typeLabel":"Action Common Options · object"}},"uniqueKey":"oneOf.1","typeLabel":"Tap Action with Natural Language · object"},{"type":"object","title":"Tap Action by Element","description":"Tap action configuration by element","required":["target"],"properties":{"target":{"type":"object","title":"Detected Element","description":"The element to tap","required":["id","source","type","path","width","height","x","y","centerX","centerY","label"],"properties":{"id":{"type":"string","description":"Element id","example":"1","isRequired":true,"uniqueKey":"oneOf.2.target.id","typeLabel":"string"},"source":{"type":"string","description":"Element source","example":"chromium","isRequired":true,"uniqueKey":"oneOf.2.target.source","typeLabel":"string"},"type":{"type":"string","description":"Element type","example":"button","isRequired":true,"uniqueKey":"oneOf.2.target.type","typeLabel":"string"},"path":{"type":"string","description":"Element path","example":"#root > table > tbody > tr:nth-child(1) > td:nth-child(1) > div > button","isRequired":true,"uniqueKey":"oneOf.2.target.path","typeLabel":"string"},"width":{"type":"number","description":"Element width","example":100,"isRequired":true,"uniqueKey":"oneOf.2.target.width","typeLabel":"number"},"height":{"type":"number","description":"Element height","example":50,"isRequired":true,"uniqueKey":"oneOf.2.target.height","typeLabel":"number"},"x":{"type":"number","description":"Element x coordinate relative to screen","example":100,"isRequired":true,"uniqueKey":"oneOf.2.target.x","typeLabel":"number"},"y":{"type":"number","description":"Element y coordinate relative to screen","example":100,"isRequired":true,"uniqueKey":"oneOf.2.target.y","typeLabel":"number"},"centerX":{"type":"number","description":"Element center x coordinate relative to screen","example":150,"isRequired":true,"uniqueKey":"oneOf.2.target.centerX","typeLabel":"number"},"centerY":{"type":"number","description":"Element center y coordinate relative to screen","example":125,"isRequired":true,"uniqueKey":"oneOf.2.target.centerY","typeLabel":"number"},"label":{"type":"string","description":"A human-readable identifier generated from the element's visible attributes to help understand what this element represents.\nFor images, it uses alt text or filename; for links, it uses text content or href; for buttons, it uses text content or aria-label; for inputs, it uses placeholder or value; etc.","example":"Click me","isRequired":true,"uniqueKey":"oneOf.2.target.label","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.2.target","typeLabel":"Detected Element · object"},"options":{"type":"object","title":"Action Common Options","description":"Action options. When `options.screenshot` is provided, ALL deprecated screenshot fields (outputFormat, presignedExpiresIn, screenshotDelay, screenshotRange, includeScreenshot) will be completely ignored.","example":{"screenshot":{"outputFormat":"base64","presignedExpiresIn":"30m","delay":"500ms","phases":["before","after"]}},"properties":{"screenshot":{"oneOf":[{"type":"object","title":"Action Screenshot Options","description":"Screenshot options. Can be a boolean to enable/disable screenshots, or an object to configure screenshot options.","example":{"outputFormat":"base64","presignedExpiresIn":"30m","delay":"500ms","phases":["before","after"]},"properties":{"outputFormat":{"type":"string","enum":["base64","storageKey"],"description":"Type of the URI. default is base64.","default":"base64","example":"base64","uniqueKey":"oneOf.2.options.screenshot.oneOf.0.outputFormat","typeLabel":"enum\u003cstring>"},"presignedExpiresIn":{"type":"string","description":"Presigned url expires in. Only takes effect when outputFormat is storageKey.\n\nSupported time units: ms (milliseconds), s (seconds), m (minutes), h (hours)\nExample formats: \"500ms\", \"30s\", \"5m\", \"1h\"\nDefault: 30m","example":"30m","default":"30m","title":"PresignedExpiresIn","uniqueKey":"oneOf.2.options.screenshot.oneOf.0.presignedExpiresIn","typeLabel":"string"},"delay":{"type":"string","description":"Delay after performing the action, before taking the final screenshot.\n\nExecution flow:\n1. Take screenshot before action\n2. Perform the action\n3. Wait for screenshotDelay (this parameter)\n4. Take screenshot after action\n\nExample: '500ms' means wait 500ms after the action before capturing the final screenshot.\n\nSupported time units: ms (milliseconds), s (seconds), m (minutes), h (hours)\nExample formats: \"500ms\", \"30s\", \"5m\", \"1h\"\nDefault: 500ms\nMaximum allowed: 30s","example":"500ms","default":"500ms","title":"Delay","uniqueKey":"oneOf.2.options.screenshot.oneOf.0.delay","typeLabel":"string"},"phases":{"type":"array","description":"Specify which screenshot phases to capture.\n\nAvailable options:\n- before: Screenshot before the action\n- after: Screenshot after the action\n- trace: Screenshot with operation trace\n\nDefault captures all three phases. Can specify one or multiple in an array.\nIf empty array is provided, no screenshots will be taken.","default":["before","after","trace"],"example":["before","after"],"items":{"type":"string","enum":["before","after","trace"],"uniqueKey":"oneOf.2.options.screenshot.oneOf.0.phases.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"oneOf.2.options.screenshot.oneOf.0.phases","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"oneOf.2.options.screenshot.oneOf.0","typeLabel":"Action Screenshot Options · object"},{"type":"boolean","description":"Screenshot options. Can be a boolean to enable/disable screenshots, or an object to configure screenshot options.","example":true,"uniqueKey":"oneOf.2.options.screenshot.oneOf.1","typeLabel":"boolean"}],"uniqueKey":"oneOf.2.options.screenshot","typeLabel":"Action Screenshot Options · object | boolean"},"model":{"type":"string","description":"Model to use for natural-language target resolution. Defaults to 'uitars'.","enum":["gpt-5","gpt-4o","gelato","ui-tars","openai-computer-use"],"default":"gelato","uniqueKey":"oneOf.2.options.model","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.2.options","typeLabel":"Action Common Options · object"}},"uniqueKey":"oneOf.2","typeLabel":"Tap Action by Element · object"}],"uniqueKey":"","typeLabel":"Tap Action · object | Tap Action with Natural Language · object | Tap Action by Element · object"},"examples":{"Basic":{"title":"Basic","summary":"Basic tap","value":{"x":100,"y":100}},"NaturalLanguage":{"title":"NaturalLanguage","summary":"Tap Chrome icon","value":{"target":"Chrome"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"8fb3a4ed-b0f0-4ea7-9d4c-2a7c9c746334":{"description":"Tap action executed successfully. The response includes the actual coordinates where the tap was performed.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"message","example":"Action executed successfully","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"actionId":{"type":"string","description":"Unique identifier for each action. Use this ID to locate the action and report issues.","example":"c9bdc193-b54b-4ddb-a035-5ac0c598d32d","isRequired":true,"uniqueKey":"actionId","typeLabel":"string"},"actual":{"type":"object","title":"Tap Action Actual Parameters","description":"Actual parameters used when executing the tap action","required":["x","y"],"example":{"x":350,"y":250},"properties":{"x":{"type":"number","description":"X coordinate where the tap was executed","example":350,"isRequired":true,"uniqueKey":"actual.x","typeLabel":"number"},"y":{"type":"number","description":"Y coordinate where the tap was executed","example":250,"isRequired":true,"uniqueKey":"actual.y","typeLabel":"number"}},"isRequired":true,"uniqueKey":"actual","typeLabel":"Tap Action Actual Parameters · object"},"screenshot":{"type":"object","title":"Action Result Screenshot","description":"Optional screenshot data. Only present when screenshots are requested via options.screenshot.phases or deprecated fields","example":{"trace":{"uri":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA..."},"before":{"uri":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA..."},"after":{"uri":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA..."}},"properties":{"trace":{"type":"object","title":"Action Result Screenshot Operation Trace","description":"URI of the screenshot before the action with operation trace","required":["uri"],"example":{"uri":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA..."},"properties":{"uri":{"type":"string","description":"URI of the screenshot with operation trace","example":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA...","isRequired":true,"uniqueKey":"screenshot.trace.uri","typeLabel":"string"}},"uniqueKey":"screenshot.trace","typeLabel":"Action Result Screenshot Operation Trace · object"},"before":{"type":"object","title":"Action Result Screenshot Before","description":"URI of the screenshot before the action","required":["uri"],"example":{"uri":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA..."},"properties":{"uri":{"type":"string","description":"URI of the screenshot before the action","example":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA...","isRequired":true,"uniqueKey":"screenshot.before.uri","typeLabel":"string"},"presignedUrl":{"type":"string","description":"Presigned url of the screenshot before the action","example":"https://example.com/xxxxx/xxxxx/xxxxx","uniqueKey":"screenshot.before.presignedUrl","typeLabel":"string"}},"uniqueKey":"screenshot.before","typeLabel":"Action Result Screenshot Before · object"},"after":{"type":"object","title":"Action Result Screenshot After","description":"URI of the screenshot after the action","required":["uri"],"example":{"uri":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA..."},"properties":{"uri":{"type":"string","description":"URI of the screenshot after the action","example":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA...","isRequired":true,"uniqueKey":"screenshot.after.uri","typeLabel":"string"},"presignedUrl":{"type":"string","description":"Presigned url of the screenshot before the action","example":"https://example.com/xxxxx/xxxxx/xxxxx","uniqueKey":"screenshot.after.presignedUrl","typeLabel":"string"}},"uniqueKey":"screenshot.after","typeLabel":"Action Result Screenshot After · object"}},"uniqueKey":"screenshot","typeLabel":"Action Result Screenshot · object"}},"title":"Tap Action Result","description":"Result of tap action execution with actual parameters used","required":["message","actionId","actual"],"uniqueKey":"","typeLabel":"Tap Action Result · object"},"examples":{"Example":{"title":"Example","value":{"message":"Action executed successfully","actionId":"c9bdc193-b54b-4ddb-a035-5ac0c598d32d","actual":{"x":350,"y":250},"screenshot":{"trace":{"uri":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA..."},"before":{"uri":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA..."},"after":{"uri":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA..."}}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"a68030ec-91e4-4362-b54e-f5f4ddd16fcd":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"Enter your API Key in the format: Bearer \u003ctoken>. Get it from https://gbox.ai","scopes":[]}}},"servers":{"f0957f46-1012-4379-83b5-d47a11963c67":{"url":"https://gbox.ai/api/v1","description":"Production Server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"Enter your API Key in the format: Bearer \u003ctoken>. Get it from https://gbox.ai","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Enter your API Key in the format: Bearer \u003ctoken>. Get it from https://gbox.ai","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer","name":"Authorization"}],"title":"bearer"}]},"originalFileLocation":"openapi.documented.yml"},"subdomain":"gbox-551f8aad","siteName":"GBOX docs","title":"Tap - GBOX docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-09-19T08:32:43.186Z","originalFileLocation":"api-reference/ui-action/tap.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Tap action for Android devices using ADB input tap command\">\u003cmeta data-mint-head name=\"application-name\" content=\"GBOX docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gbox-551f8aad/iyr_Vuzw2zXkgJvV/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/gbox-551f8aad/iyr_Vuzw2zXkgJvV/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gbox-551f8aad/iyr_Vuzw2zXkgJvV/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gbox-551f8aad/iyr_Vuzw2zXkgJvV/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gbox-551f8aad/iyr_Vuzw2zXkgJvV/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gbox-551f8aad/iyr_Vuzw2zXkgJvV/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gbox-551f8aad/iyr_Vuzw2zXkgJvV/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gbox-551f8aad/iyr_Vuzw2zXkgJvV/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gbox-551f8aad/iyr_Vuzw2zXkgJvV/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Tap - GBOX docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Tap action for Android devices using ADB input tap command\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"GBOX docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.gbox.ai/api-reference/ui-action/tap\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://gbox-551f8aad.mintlify.site/_mintlify/api/og/v2?division=UI+Action\u0026amp;title=Tap\u0026amp;description=Tap+action+for+Android+devices+using+ADB+input+tap+command\u0026amp;theme=b843ea8c3da74595ac0eb603\u0026amp;signature=ca82ef81cd49880fada0aeebbc4be2ee79b84b87d142f31641e0ab0a67da17c8\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Tap - GBOX docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Tap action for Android devices using ADB input tap command\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://gbox-551f8aad.mintlify.site/_mintlify/api/og/v2?division=UI+Action\u0026amp;title=Tap\u0026amp;description=Tap+action+for+Android+devices+using+ADB+input+tap+command\u0026amp;theme=b843ea8c3da74595ac0eb603\u0026amp;signature=ca82ef81cd49880fada0aeebbc4be2ee79b84b87d142f31641e0ab0a67da17c8\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/gbox-551f8aad/iyr_Vuzw2zXkgJvV/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"GBOX docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7139ee\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.gbox.ai/api-reference/ui-action/tap\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/ui-action/tap.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.gbox.ai/#organization\",\"name\":\"GBOX docs\",\"url\":\"https://docs.gbox.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/gbox-551f8aad/T-DuPp0A8fmxumYw/logo/light.svg?fit=max\u0026auto=format\u0026n=T-DuPp0A8fmxumYw\u0026q=85\u0026s=786e91dc97663517a975e2a4cdd38dc0\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.gbox.ai#website\",\"name\":\"GBOX docs\",\"url\":\"https://docs.gbox.ai\",\"publisher\":{\"@id\":\"https://docs.gbox.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.gbox.ai/api-reference/ui-action/tap#webpage\",\"url\":\"https://docs.gbox.ai/api-reference/ui-action/tap\",\"name\":\"Tap\",\"description\":\"Tap action for Android devices using ADB input tap command\",\"dateModified\":\"2025-09-19T08:32:43.186Z\",\"isPartOf\":{\"@id\":\"https://docs.gbox.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gbox.ai/api-reference/ui-action/tap#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gbox.ai/api-reference/ui-action/tap#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"UI Action\",\"item\":\"https://docs.gbox.ai/api-reference/ui-action/detect-ui-elements\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tap\",\"item\":\"https://docs.gbox.ai/api-reference/ui-action/tap\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.gbox.ai/api-reference/ui-action/tap#apireference\",\"headline\":\"Tap\",\"name\":\"Tap\",\"description\":\"Tap action for Android devices using ADB input tap command\",\"url\":\"https://docs.gbox.ai/api-reference/ui-action/tap\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gbox.ai/api-reference/ui-action/tap#webpage\"},\"dateModified\":\"2025-09-19T08:32:43.186Z\",\"publisher\":{\"@id\":\"https://docs.gbox.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.gbox.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"GBOX docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"GBOX docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/ui-action/tap.md","siteName":"GBOX docs","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/leader-board/os-world"}]},{"tab":"API Reference","groups":[{"group":"Model","tag":"beta","pages":[{"openapi":"post /model","title":"Generate Coordinates","href":"/api-reference/model/generate-coordinates-for-a-model"}]},{"group":"Box","pages":[{"openapi":"post /boxes/android","title":"Create android box","href":"/api-reference/box/create-android-box"},{"openapi":"post /boxes/linux","title":"Create linux box","href":"/api-reference/box/create-linux-box"},{"openapi":"get /boxes","title":"List box","href":"/api-reference/box/list-box"},{"openapi":"post /boxes/{boxId}/terminate","title":"Terminate box","href":"/api-reference/box/terminate-box"},{"openapi":"get /boxes/{boxId}","title":"Get box","href":"/api-reference/box/get-box"},{"openapi":"post /boxes/{boxId}/live-view-url","title":"Live view url","href":"/api-reference/box/live-view-url"},{"openapi":"post /boxes/{boxId}/web-terminal-url","title":"Web terminal url","href":"/api-reference/box/web-terminal-url"},{"openapi":"get /boxes/{boxId}/display","title":"Get box display","href":"/api-reference/box/get-box-display"},{"openapi":"post /boxes/{boxId}/resolution","title":"Set screen resolution","href":"/api-reference/box/set-screen-resolution"},{"openapi":"post /boxes/{boxId}/storage/presigned-url","title":"Create presigned url","href":"/api-reference/box/create-presigned-url"},{"openapi":"get /boxes/{boxId}/proxy","title":"Get proxy","href":"/api-reference/box/get-proxy"},{"openapi":"post /boxes/{boxId}/proxy","title":"Set proxy","href":"/api-reference/box/set-proxy"},{"openapi":"delete /boxes/{boxId}/proxy","title":"Clear proxy","href":"/api-reference/box/clear-proxy"}]},{"group":"UI Action","pages":[{"openapi":"post /boxes/{boxId}/actions/elements/detect","title":"Detect UI elements","href":"/api-reference/ui-action/detect-ui-elements"},{"openapi":"post /boxes/{boxId}/actions/click","title":"Click","description":"Simulates a click action on the box.","href":"/api-reference/ui-action/click"},{"openapi":"post /boxes/{boxId}/actions/tap","title":"Tap","href":"/api-reference/ui-action/tap"},{"openapi":"post /boxes/{boxId}/actions/touch","title":"Touch","description":"Performs more advanced touch gestures. Use this endpoint to simulate realistic behaviors.","href":"/api-reference/ui-action/touch"},{"openapi":"post /boxes/{boxId}/actions/drag","title":"Drag","href":"/api-reference/ui-action/drag"},{"openapi":"post /boxes/{boxId}/actions/scroll","title":"Scroll","href":"/api-reference/ui-action/scroll"},{"openapi":"post /boxes/{boxId}/actions/swipe","title":"Swipe","href":"/api-reference/ui-action/swipe"},{"openapi":"post /boxes/{boxId}/actions/press-key","title":"Press key","href":"/api-reference/ui-action/press-key"},{"openapi":"post /boxes/{boxId}/actions/press-button","title":"Press button","href":"/api-reference/ui-action/press-button"},{"openapi":"post /boxes/{boxId}/actions/long-press","title":"Long press","href":"/api-reference/ui-action/long-press"},{"openapi":"post /boxes/{boxId}/actions/type","title":"Type text","href":"/api-reference/ui-action/type-text"},{"openapi":"post /boxes/{boxId}/actions/move","title":"Move to position","href":"/api-reference/ui-action/move-to-position"},{"openapi":"post /boxes/{boxId}/actions/screen-rotation","title":"Rotate screen","href":"/api-reference/ui-action/rotate-screen"},{"openapi":"post /boxes/{boxId}/actions/screenshot","title":"Take screenshot","href":"/api-reference/ui-action/take-screenshot"},{"openapi":"get /boxes/{boxId}/actions/screen-layout","title":"Get screen layout","href":"/api-reference/ui-action/get-screen-layout"},{"openapi":"post /boxes/{boxId}/actions/recording/start","title":"Start recording","href":"/api-reference/ui-action/start-recording"},{"openapi":"post /boxes/{boxId}/actions/recording/stop","title":"Stop recording","href":"/api-reference/ui-action/stop-recording"},{"openapi":"post /boxes/{boxId}/actions/recording/rewind","title":"Enable rewind recording","href":"/api-reference/ui-action/enable-rewind-recording"},{"openapi":"delete /boxes/{boxId}/actions/recording/rewind","title":"Disable rewind recording","href":"/api-reference/ui-action/disable-rewind-recording"},{"openapi":"post /boxes/{boxId}/actions/recording/rewind/extract","title":"Extract rewind recording","href":"/api-reference/ui-action/extract-rewind-recording"},{"openapi":"get /boxes/{boxId}/actions/clipboard","title":"Get clipboard","href":"/api-reference/ui-action/get-clipboard"},{"openapi":"post /boxes/{boxId}/actions/clipboard","title":"Set clipboard","href":"/api-reference/ui-action/set-clipboard"},{"openapi":"get /boxes/{boxId}/actions/settings","title":"Get settings","href":"/api-reference/ui-action/get-settings"},{"openapi":"put /boxes/{boxId}/actions/settings","title":"Update settings","href":"/api-reference/ui-action/update-settings"},{"openapi":"delete /boxes/{boxId}/actions/settings","title":"Reset settings","href":"/api-reference/ui-action/reset-settings"}]},{"group":"Run Code","pages":[{"openapi":"post /boxes/{boxId}/run-code","title":"Run code on the box","href":"/api-reference/run-code/run-code-on-the-box"}]},{"group":"Command","pages":[{"openapi":"post /boxes/{boxId}/commands","title":"Exec command","href":"/api-reference/command/exec-command"}]},{"group":"File System","pages":[{"openapi":"get /boxes/{boxId}/fs/list","title":"List box files","href":"/api-reference/file-system/list-box-files"},{"openapi":"get /boxes/{boxId}/fs/info","title":"Get file/dir","href":"/api-reference/file-system/get-filedir"},{"openapi":"get /boxes/{boxId}/fs/read","title":"Read box file","href":"/api-reference/file-system/read-box-file"},{"openapi":"post /boxes/{boxId}/fs/write","title":"Write box file","href":"/api-reference/file-system/write-box-file"},{"openapi":"delete /boxes/{boxId}/fs","title":"Delete box file/dir","href":"/api-reference/file-system/delete-box-filedir"},{"openapi":"post /boxes/{boxId}/fs/rename","title":"Rename box/dir","href":"/api-reference/file-system/rename-boxdir"},{"openapi":"post /boxes/{boxId}/fs/exists","title":"Check if file/dir exists","href":"/api-reference/file-system/check-if-filedir-exists"}]},{"group":"Browser","pages":[{"openapi":"post /boxes/{boxId}/browser/connect-url/cdp","title":"Generate CDP url","href":"/api-reference/browser/generate-cdp-url"},{"openapi":"post /boxes/{boxId}/browser/open","title":"Open browser","href":"/api-reference/browser/open-browser"},{"openapi":"delete /boxes/{boxId}/browser/close","title":"Close browser","href":"/api-reference/browser/close-browser"},{"openapi":"get /boxes/{boxId}/browser/tabs","title":"List all browser tabs","href":"/api-reference/browser/list-all-browser-tabs"},{"openapi":"post /boxes/{boxId}/browser/tabs","title":"Open a new browser tab","href":"/api-reference/browser/open-a-new-browser-tab"},{"openapi":"put /boxes/{boxId}/browser/tabs/{tabId}","title":"Update browser tab URL","href":"/api-reference/browser/update-browser-tab-url"},{"openapi":"post /boxes/{boxId}/browser/tabs/{tabId}/switch","title":"Switch to browser tab","href":"/api-reference/browser/switch-to-browser-tab"},{"openapi":"delete /boxes/{boxId}/browser/tabs/{tabId}","title":"Close a browser tab","href":"/api-reference/browser/close-a-browser-tab"}]},{"group":"Android","tag":"beta","pages":[{"openapi":"get /boxes/{boxId}/android/apps","title":"List apps","href":"/api-reference/android/list-apps"},{"openapi":"get /boxes/{boxId}/android/apps/{packageName}","title":"Get app","href":"/api-reference/android/get-app"},{"openapi":"get /boxes/{boxId}/android/packages/{packageName}","title":"Get pkg","href":"/api-reference/android/get-pkg"},{"openapi":"delete /boxes/{boxId}/android/packages/{packageName}","title":"Uninstall app","href":"/api-reference/android/uninstall-app"},{"openapi":"post /boxes/{boxId}/android/packages","title":"Install app","href":"/api-reference/android/install-app"},{"openapi":"post /boxes/{boxId}/android/packages/{packageName}/open","title":"Open app","href":"/api-reference/android/open-app"},{"openapi":"post /boxes/{boxId}/android/packages/{packageName}/close","title":"Close app","href":"/api-reference/android/close-app"},{"openapi":"post /boxes/{boxId}/android/packages/close-all","title":"Close all apps","href":"/api-reference/android/close-all-apps"},{"openapi":"get /boxes/{boxId}/android/packages/{packageName}/activities","title":"Get pkg activities","href":"/api-reference/android/get-pkg-activities"},{"openapi":"post /boxes/{boxId}/android/packages/{packageName}/restart","title":"Restart app","href":"/api-reference/android/restart-app"},{"openapi":"get /boxes/{boxId}/android/packages","title":"List pkg","href":"/api-reference/android/list-pkg"},{"openapi":"get /boxes/{boxId}/android/packages/simple","title":"List pkg simple","href":"/api-reference/android/list-pkg-simple"},{"openapi":"post /boxes/{boxId}/android/connect-url/appium","title":"Appium Connection","href":"/api-reference/android/generate-appium-connection-url"}]},{"group":"Media","pages":[{"openapi":"get /boxes/{boxId}/media/albums","title":"List albums","href":"/api-reference/media/list-albums"},{"openapi":"post /boxes/{boxId}/media/albums","title":"Create album","href":"/api-reference/media/create-album"},{"openapi":"get /boxes/{boxId}/media/albums/{albumName}","title":"Get album detail","href":"/api-reference/media/get-album-detail"},{"openapi":"delete /boxes/{boxId}/media/albums/{albumName}","title":"Delete album","href":"/api-reference/media/delete-album"},{"openapi":"patch /boxes/{boxId}/media/albums/{albumName}","title":"Update album","href":"/api-reference/media/update-album"},{"openapi":"get /boxes/{boxId}/media/albums/{albumName}/media","title":"List media in album","href":"/api-reference/media/list-media-in-album"},{"openapi":"get /boxes/{boxId}/media/albums/{albumName}/media/{mediaName}","title":"Get media detail","href":"/api-reference/media/get-media-detail"},{"openapi":"delete /boxes/{boxId}/media/albums/{albumName}/media/{mediaName}","title":"Delete media from album","href":"/api-reference/media/delete-media-from-album"},{"openapi":"get /boxes/{boxId}/media/albums/{albumName}/media/{mediaName}/download","title":"Download media","href":"/api-reference/media/download-media"},{"openapi":"get /boxes/{boxId}/media/support","title":"Get media support extensions","href":"/api-reference/media/get-media-support-extensions"}]}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/sdk"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli/gbox-cli"}]},{"tab":"Model Context Protocol (MCP)","pages":[{"title":"Model Context Protocol (MCP)","href":"/docs-mcp/docs-mcp-server"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Tap - GBOX docs","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-x4vGgoST.js","snippetPresets-BGlsYH49.js","utils-D225GpYB.js","style-to-object-BY3JEAdk.js","utils-fb7dxv-3.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-D0sNzoEe.js","conditional-requirements-CFM0id0Q.js","cloneDeep-C4iMfrOs.js","_Uint8Array-DDor1j2p.js","isObject-FP1Yky1u.js","ApiExamples-Bw_TWYoP.js","usePlaygroundInputsStore-DLRpNM_Z.js","shallow-DCZ_mvT2.js","isEqual-BZMHHGz2.js","CodeSnippets-CqYNT6UN.js","CodeSnippet-AsYrl7_f.js","getApiPlaygroundDisplay-B1HdZsAn.js","Page-COAeG2by.js","DynamicMarkdown-Bg54PExR.js","SectionHeading-BVOfbSTS.js","icon-Bwg0LftJ.js","MethodPill-ETXe5J4U.js","getPastedJson-6m1DH7UM.js","Check2Icon-Bz4v4IkN.js","axios-CsQoIw0U.js","Markdown-CYkmN8yk.js","AssistantPageLink-BZUrxqjy.js","dist-C-58LlaB.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}