Mobilerun Tools/Files API

The Tools/Files API from Mobilerun — 2 operation(s) for tools/files.

GitHub OpenAPI

Operations 4

DELETE /devices/{deviceId}/files Delete file #
GET /devices/{deviceId}/files List files #
POST /devices/{deviceId}/files Upload file #
GET /devices/{deviceId}/files/download Download file #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mobilerun-ai:mobilerun-ai-tools-files-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mobilerun-ai-tools-files-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mobilerun Ai Tools/Files API
  version: v1
  contact:
    name: Droidrun
    email: support@droidrun.ai
  description: 'Operations tagged Tools/Files across 2 of this provider''s published API definitions: openapi.json, mobilerun-ai-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.mobilerun.ai
  description: Droidrun Cloud API
security:
- bearerAuth: []
tags:
- name: Tools/Files
paths:
  /devices/{deviceId}/files:
    delete:
      description: Deletes the file at the path given in the path query parameter from the device.
      operationId: delete-file
      responses:
        '204':
          description: No Content
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      summary: Delete file
      tags:
      - Tools/Files
      x-mint:
        content: 'Removes the file at `path`, rooted at the device''s shared storage, e.g. `/Download/report.pdf`. Deletion is immediate and permanent — there is no trash to recover from.


          The endpoint targets individual files; to clear out a directory, list it and delete its files one by one.

          '
      parameters:
      - in: path
        name: deviceId
        required: true
        schema:
          type: string
      - in: header
        name: X-Device-Display-ID
        schema:
          default: 0
          format: int64
          minimum: 0
          type: integer
      - explode: false
        in: query
        name: path
        required: true
        schema:
          type: string
    get:
      description: Lists the files at the directory path given in the path query parameter, returning each entry's metadata along with the path and total count.
      operationId: list-files
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileListBody'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      summary: List files
      tags:
      - Tools/Files
      x-mint:
        content: '`path` is a directory path rooted at the device''s shared storage — `/` is the storage root (primary external storage on Android devices), e.g. `/Download`. The response contains the directory''s direct entries only — it does not recurse into subdirectories.


          File access is available on Android devices only; file requests against an iOS device fail with `400`.


          <Note>

          Depending on the device type, some entry metadata (`owner`, `group`, `permissions`, `hardLinks`) may be zeroed rather than reflect real values.

          </Note>

          # Invalid directories


          On hosted Android Phones, nonexistent directories return `404 DEVICE_PATH_NOT_FOUND`, files used

          as directories return `422 DEVICE_PATH_NOT_DIRECTORY`, and unreadable directories

          return `403 DEVICE_PATH_FORBIDDEN`. A readable empty directory remains a successful

          listing with zero entries. Paths retain the external-storage scope: `/` means

          primary shared storage, and `/data/...` does not grant app-private filesystem access.

          '
      parameters:
      - in: path
        name: deviceId
        required: true
        schema:
          type: string
      - in: header
        name: X-Device-Display-ID
        schema:
          default: 0
          format: int64
          minimum: 0
          type: integer
      - explode: false
        in: query
        name: path
        required: true
        schema:
          type: string
    post:
      description: Uploads a file to the device via multipart form data, writing it into the directory given by the path query parameter using the uploaded file's name.
      operationId: upload-file
      requestBody:
        content:
          multipart/form-data:
            encoding:
              file:
                contentType: application/octet-stream
            schema:
              properties:
                file:
                  contentEncoding: binary
                  contentMediaType: application/octet-stream
                  format: binary
                  type: string
              required:
              - file
              type: object
      responses:
        '204':
          description: No Content
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      summary: Upload file
      tags:
      - Tools/Files
      x-mint:
        content: '`path` is the destination **directory**, not the full file path — the file is written there under its original uploaded filename. Paths are rooted at the device''s shared storage (`/` is the storage root): uploading `report.pdf` with `path=/Download` creates `/Download/report.pdf`.


          <Tip>

          File access runs without root and stays within the device''s shared storage tree; protected system paths are not reachable.

          </Tip>

          '
      parameters:
      - in: path
        name: deviceId
        required: true
        schema:
          type: string
      - in: header
        name: X-Device-Display-ID
        schema:
          default: 0
          format: int64
          minimum: 0
          type: integer
      - explode: false
        in: query
        name: path
        required: true
        schema:
          type: string
    servers:
    - url: https://api.mobilerun.ai
      description: Droidrun Cloud API
  /devices/{deviceId}/files/download:
    get:
      description: Pulls the file at the given path query parameter from the device and returns its raw bytes as an octet-stream.
      operationId: download-file
      responses:
        '200':
          content:
            application/json:
              schema:
                contentEncoding: base64
                type: string
          description: OK
          headers:
            Content-Type:
              schema:
                type: string
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      summary: Download file
      tags:
      - Tools/Files
      x-mint:
        content: 'Returns the file''s raw bytes in the response body. The `Content-Type` is always `application/octet-stream` regardless of the file''s actual type, and no filename header is set — derive the name from the `path` you requested.


          The whole file arrives in a single response; range requests are not supported.


          Errors: a missing file returns `404 DEVICE_PATH_NOT_FOUND`; a directory returns `422 DEVICE_PATH_NOT_FILE`.

          '
      parameters:
      - in: path
        name: deviceId
        required: true
        schema:
          type: string
      - in: header
        name: X-Device-Display-ID
        schema:
          default: 0
          format: int64
          minimum: 0
          type: integer
      - explode: false
        in: query
        name: path
        required: true
        schema:
          type: string
    servers:
    - url: https://api.mobilerun.ai
      description: Droidrun Cloud API
components:
  schemas:
    FileInfo:
      additionalProperties: false
      properties:
        extendedAttributes:
          type: boolean
        group:
          type: string
        hardLinks:
          format: int64
          type: integer
        modifiedAt:
          format: date-time
          type: string
        name:
          type: string
        owner:
          type: string
        permissions:
          $ref: '#/components/schemas/FilePermissions'
        size:
          format: int64
          type: integer
        symlinkTarget:
          type: string
        type:
          type: string
      required:
      - name
      - owner
      - group
      - size
      - type
      - permissions
      - hardLinks
      - modifiedAt
      - extendedAttributes
      type: object
    ErrorModel:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
          - https://example.com/schemas/ErrorModel.json
          format: uri
          readOnly: true
          type: string
        detail:
          description: A human-readable explanation specific to this occurrence of the problem.
          examples:
          - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
          - array
          - 'null'
        instance:
          description: A URI reference that identifies the specific occurrence of the problem.
          examples:
          - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
          - 400
          format: int64
          type: integer
        title:
          description: A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
          examples:
          - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
          - https://example.com/errors/example
          format: uri
          type: string
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
    PermissionSet:
      additionalProperties: false
      properties:
        execute:
          type: boolean
        read:
          type: boolean
        write:
          type: boolean
      required:
      - read
      - write
      - execute
      type: object
    FileListBody:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
          - https://example.com/schemas/FileListBody.json
          format: uri
          readOnly: true
          type: string
        files:
          items:
            $ref: '#/components/schemas/FileInfo'
          type:
          - array
          - 'null'
        path:
          type: string
        total:
          format: int64
          type: integer
      required:
      - path
      - total
      - files
      type: object
    FilePermissions:
      additionalProperties: false
      properties:
        group:
          $ref: '#/components/schemas/PermissionSet'
        others:
          $ref: '#/components/schemas/PermissionSet'
        owner:
          $ref: '#/components/schemas/PermissionSet'
        special:
          $ref: '#/components/schemas/SpecialPermissions'
      required:
      - owner
      - group
      - others
      - special
      type: object
    SpecialPermissions:
      additionalProperties: false
      properties:
        setGid:
          type: boolean
        setUid:
          type: boolean
        sticky:
          type: boolean
      required:
      - setUid
      - setGid
      - sticky
      type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Opaque
      description: Bearer token via Authorization header
x-refined-from:
- openapi.json
- mobilerun-ai-openapi.json
x-provenance:
  method: harvested
  publisher: Mobilerun
  source: https://api.mobilerun.ai/v1/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)