Profile URL

When a page is slow or misbehaving, you need to see what it actually did — not guess.

debugging/profile-url fires one same-host request to a URL with Query Monitor capturing, and returns the page’s database queries, outbound HTTP calls, PHP errors, template, time and memory.

At a glance

Abilitydebugging/profile-url
ToolsetDiagnostics — toolset/diagnostics
GroupDiagnostics › Query Monitor
RequiresQuery Monitor, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.43 and later

How it works

Pass the url to profile, and optionally slowest_limit (how many of the slowest queries to return, 1–50, default 10).

It fires one same-host loopback request to that URL, authenticated as the administrator running it with a single-use, short-lived session, so Query Monitor’s full collector pipeline runs and the profile reflects the logged-in administrator view of the page.

Off-site hosts and non-HTTP(S) schemes are refused. It reads Query Monitor’s data and changes nothing on the site.

Input

NameTypeRequiredWhat it is
urlstringYesAbsolute http(s) URL on this site to profile.
slowest_limitintegerNoHow many of the slowest queries to include (1–50, default 10).

What comes back

NameTypeWhat it is
profiled_urlstringThe URL that was profiled.
http_statusintegerThe HTTP status the loopback request returned.
viewed_asstringWhich user the page was viewed as.
profileobjectGeneration time and peak memory; the database query count and total time with the slowest and duplicated queries; outbound HTTP calls; PHP errors and doing-it-wrong notices; the template that rendered the page; and enqueued-asset counts.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as an off-site URL or Query Monitor not being active.

Example

Ask your assistant:

Profile the home page and show me its slowest database queries.

It resolves to one call:

{
  "ability": "debugging/profile-url",
  "parameters": {
    "url": "https://example.com/",
    "slowest_limit": 10
  }
}

Worth knowing

  • Read-only — it reads Query Monitor’s capture and writes nothing.
  • The profile is the logged-in administrator view, captured through a single-use session that is destroyed straight after.
  • Needs the Query Monitor plugin active; without it you get a clear “not active” message rather than an error.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading