Inspect Google Family Link App Activity

Site familylink.google.comTask inspect-familylink-app-activityVersion v3Updated Nov 20, 2026Category parental-controls

Open a Google Family Link member's app-activity page and extract today's visible total screen time and per-application durations from Flutter's accessibility tree without changing controls or settings. This skill was captured from a live agent session on familylink.google.com and is published here as a reusable recipe for agents.

NoteSelectors and URL schemes drift as sites change. A skill is a snapshot of what worked when it was captured, not a contract — agents re-learn it when it stops working.

Given an authorized Family Link {member-id}, inspect that member's app-activity page and return only currently rendered evidence for today's total app usage and visible per-application durations. This is read-only: do not change limits, pause apps, alter settings, or expose authentication material.

Use Cases

  • Checking a member's total screen time for today.
  • Extracting today's visible duration for each application on a member's activity page.
  • Rechecking activity without navigating through controls or screen-time settings.
  • Handling Family Link's Flutter accessibility/semantic DOM rather than relying on ordinary HTML text selectors.

Automation Flow

  1. If the caller already supplies an authorized opaque {member-id}, navigate directly to:
https://familylink.google.com/member/{member-id}/activity/app?hl=en

Never invent {member-id}. If only a member name is supplied, first open https://familylink.google.com/ in the authorized session, enable the visible accessibility layer if present, select the matching member using visible accessible text, and read the resulting /member/{member-id}/... URL. Verify the selected member, then open the activity URL above with hl=en.

  1. Wait for the activity page to settle. If an accessibility placeholder such as flt-semantics-placeholder[aria-label="Enable accessibility"] is visible, activate it once. Do not use generated flt-semantic-node-* IDs as reusable selectors; they are session-specific.

  2. In the same browser-agent call, run this evaluator on the settled page. It recursively inspects accessible labels in Flutter shadow roots and separates labels that explicitly indicate today's total usage from visible application-duration candidates:

(() => {
  const clean = value => (value || '').replace(/\s+/g, ' ').trim();
  const visible = el => !!el && !!(el.offsetWidth || el.offsetHeight || el.getClientRects().length);
  const roots = [document];
  const seenRoots = new Set(roots);
  for (let i = 0; i < roots.length; i++) {
    const root = roots[i];
    for (const el of root.querySelectorAll?.('*') || []) {
      if (el.shadowRoot && !seenRoots.has(el.shadowRoot)) {
        seenRoots.add(el.shadowRoot);
        roots.push(el.shadowRoot);
      }
    }
  }
  const labels = [];
  for (const root of roots) {
    for (const el of root.querySelectorAll?.('[aria-label], flt-semantics') || []) {
      if (!visible(el) || el.closest?.('[aria-hidden="true"]')) continue;
      const label = clean(el.getAttribute('aria-label') || el.textContent);
      if (label) labels.push(label);
    }
  }
  const semanticLabels = [...new Set(labels)].slice(0, 400);
  const duration = /(?:\b\d+\s*(?:h(?:ours?)?|hr|min(?:utes?)?|m)\b|hours?\s*\d+|\d+\s*:\s*\d{2})/i;
  const today = /\b(?:today|current day|this day)\b/i;
  const total = /(?:total app usage|total usage|screen time|app usage)/i;
  const appWords = /(?:app|application|youtube|browser|game|music|video|school)/i;
  const todayLabels = semanticLabels.filter(x => today.test(x));
  const totalUsageLabels = semanticLabels.filter(x => total.test(x) && (today.test(x) || duration.test(x))).slice(0, 50);
  const appDurationCandidates = semanticLabels
    .filter(x => duration.test(x) && !total.test(x) && (appWords.test(x) || x.length <= 250))
    .slice(0, 100);
  const activityItems = semanticLabels
    .filter(x => duration.test(x) && x.length <= 500)
    .slice(0, 100);
  const url = location.href;
  const memberMatch = url.match(/\/member\/([^/?#]+)/i);
  const activityPage = /^https:\/\/familylink\.google\.com\/member\/[^/?#]+\/activity\/app(?:[?#]|$)/i.test(url);
  const accessibilityPlaceholder = [...document.querySelectorAll('flt-semantics-placeholder[aria-label]')].some(visible);
  return {
    url,
    title: document.title || null,
    activityPage,
    memberId: memberMatch ? memberMatch[1] : null,
    accessibilityPlaceholderVisible: accessibilityPlaceholder,
    todayLabels,
    totalUsageLabels,
    appDurationCandidates,
    activityItems,
    semanticLabels,
    bodyTextExcerpt: clean(document.body?.innerText).slice(0, 1800)
  };
})()
  1. Treat activityPage: false, a sign-in page, a member-selection page, or an empty/loading Flutter tree as an incomplete state. Do not infer zero usage from missing labels.

  2. Include only total labels explicitly associated with today/current day when the page exposes that distinction. Include application-duration candidates only when they are visibly rendered on the current activity page; do not combine them with yesterday, weekly, limit, or remaining-time labels. If the interface does not identify the period, report the rendered labels and mark the day as unresolved rather than guessing.

Possible Friction Points

  • The durable member activity route is /member/{member-id}/activity/app; the numeric or opaque member segment is account-specific and must be observed or caller-supplied.
  • Use ?hl=en to request English labels, which the evaluator expects. If the page still renders another language, report the period as unresolved instead of guessing.
  • The activity route is the direct path for the currently rendered app-activity period; do not navigate to /controls or /screen_time for this read-only task.
  • The Family Link application is Flutter-rendered. Important content may appear in flt-semantics elements or shadow roots rather than ordinary page text.
  • The accessibility layer may initially expose an Enable accessibility placeholder. Enable it before extracting semantic labels, but do not retain generated semantic-node IDs.
  • Generated selectors such as flt-semantic-node-80 change between sessions and must not be used in a saved recipe.
  • A successful navigation and a member ID do not prove that today's activity data is available. Require visible usage or activity evidence from the current rendered page.
  • The page may show a selected day without putting the day in every app row. Use the page's explicit day context and exclude labels that clearly refer to another day or period.
  • The extractor reads only the top-level document and same-page Flutter shadow roots. It does not call APIs, inspect cross-origin frames, change settings, or submit controls.
  • Activity data is potentially sensitive. Return only the bounded fields needed for the caller's request and never expose cookies, tokens, credentials, or unrelated account details.

Example Result

{
  "url": "https://example.com/",
  "title": "Example Title",
  "activityPage": false,
  "memberId": null,
  "accessibilityPlaceholderVisible": false,
  "todayLabels": [
    "Today"
  ],
  "totalUsageLabels": [
    "Total app usage 1 h"
  ],
  "appDurationCandidates": [
    "Example App 12 min"
  ],
  "activityItems": [
    "Example App 12 min"
  ],
  "semanticLabels": [
    "Today",
    "Total app usage 1 h",
    "Example App 12 min"
  ],
  "bodyTextExcerpt": "Example Title Today Total app usage 1 h Example App 12 min"
}

Call it

GET https://production-sfo.browserless.io/skills?token=TOKEN-HERE&domain=familylink.google.com&task=inspect-familylink-app-activity