Skip to main content
Glama

pull_file

Destructive

Copies a file from an iOS app's data container to your Mac for development-signed apps, with optional waiting for it to appear or update after launch. Returns path, size, and text contents.

Instructions

Copy a file out of an app's data container to the Mac. Works for development-signed apps only; use list_app_files to find paths. Can wait for the file to appear, or to be written after the last launch_app. Returns the local path and size, plus the contents when it is a text file up to 64 KB. Fails if the file is missing when the wait ends.

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": {
      "bundleId": "<bundleId>",
      "path": "<path>"
    },
    "name": "pull_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath inside the container, e.g. Documents/result.json
deviceNoDevice UDID or name substring. Defaults to the select_device choice, then IOS_DEVICE_MCP_DEVICE, else the single USB-connected device.
bundleIdYesApp bundle ID, e.g. com.example.MyApp (see list_apps)
destinationNoLocal path (default: .build/pulled/<bundleId>/<path> in the ios-device-mcp repo)
waitSecondsNoPoll this long for the file to exist (default 0)
modifiedAfterNoOnly accept a file modified after this ISO time, or "lastLaunch" for the last launch_app of this app; implies waiting

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.2
    • addedInput schema / properties / bundleId / description
      Added value: +"App bundle ID, e.g. com.example.MyApp (see list_apps)"
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Adds real value beyond the annotations: the 64 KB text-content limit, what is returned (local path, size, contents), and the failure mode when the wait expires. However, annotations declare destructiveHint=true and readOnlyHint=false while the description frames the operation as a plain copy-out, and it never explains what could be destroyed (e.g. overwriting an existing destination file) — that gap matters for a mutation-flagged tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four tight sentences, front-loaded with the action and the eligibility constraint, then the path-discovery pointer, the wait semantics, and the return/failure contract. No sentence is redundant or restates the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter tool with no output schema, the description covers the return payload, size limits, waiting behavior and failure conditions well. The main omission is any explanation of the destructive/mutating side of the operation flagged by annotations, which an agent should know before calling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so a baseline of 3 applies, but the description adds conceptual meaning: that waiting can be for existence or for a write after the last launch_app, which ties waitSeconds and modifiedAfter together into two distinct use cases. It also signals that the destination is a local path on the Mac, framing the destination parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Copy a file out of an app's data container to the Mac') plus the key eligibility constraint (development-signed apps only). It is clearly distinguishable from list_app_files, which is named as the path-discovery tool rather than the copy tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a concrete routing rule ('use list_app_files to find paths') and a hard pre-condition (development-signed apps only), and explains the two waiting modes. It stops short of an explicit 'do not use this when...' for other cases such as pulling directories or bulk files, so it is strong but not exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.