Skip to main content
Glama

Inspect a scripting object

inspect_dom_object
Read-onlyIdempotent

Lists members of a Premiere Pro scripting object—class, properties, and methods—to discover API details before writing ExtendScript code without changing the project.

Instructions

List the members of a Premiere Pro scripting object: class name, property names (optionally with current values) and method names. Use it to discover API members before writing execute_extendscript code. Example paths: "app", "app.project", "app.project.activeSequence.videoTracks[0]", "app.project.activeSequence.getSettings()", "qe.project.getActiveSequence()"; a path starting with "qe" enables the QE DOM first. Only a property path is accepted: names, [index] and get*/is*/has*/can* calls with no argument or one number, so inspecting cannot change anything. Account and credential members (app.anywhere, userGuid) are refused.

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": {
      "expression": "<expression>"
    },
    "name": "inspect_dom_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_itemsNoMaximum properties and, separately, maximum methods returned, 1-1000. Default 300.
expressionYesProperty path of the object, e.g. "app.project.activeSequence.videoTracks[0]". No arguments, operators or assignments.
include_valuesNoAlso read each property's current value. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is largely covered. The description still adds real behavior beyond them: the side effect that a 'qe'-prefixed path enables the QE DOM first, the refusal of app.anywhere/userGuid, and the fact that the syntax restriction is what makes inspection non-mutating.

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

Conciseness4/5

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

Front-loaded with the purpose, then constraints, then examples -- no sentence is filler. The five worked examples make the single paragraph longer than strictly necessary, though they materially reduce path-format errors.

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

Completeness5/5

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

For a three-parameter read tool with no output schema, the description covers return contents, path syntax, the optional value read, and refusal boundaries. An agent has everything needed to form a valid call and interpret the result.

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 all three parameters are already documented; the baseline is 3. The description earns a bump by supplying five concrete example paths, including indexed and method-call forms, plus the special 'qe' prefix behavior, which the schema does not explain.

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 ('List the members of a Premiere Pro scripting object') and enumerates exactly what comes back: class name, property names with optional values, and method names. It also distinguishes itself from the sibling execute_extendscript by framing itself as the discovery step that precedes writing such code.

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

Usage Guidelines5/5

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

Explicitly says to use it 'to discover API members before writing execute_extendscript code', giving both the trigger and the alternative. It further narrows the accepted input to property paths with names, [index] and zero/one-argument get*/is*/has*/can* calls, and states that account and credential members are refused.

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

Deploy Server

Other Tools