Extract named entities and sameAs links
extract_entitiesExtract named entities, linked concepts, and sameAs graph nodes from page content or structured data. Use to build entity maps for schema generation or audit entity-target alignment.
Instructions
Extract named entities, linked concepts, and sameAs graph nodes from a page's content and structured data. Combines body-text NER with JSON-LD @type / sameAs walking.
Read-only when given url (one HTTP GET). Zero network when given text.
Primary path: MCP sampling - the host LLM does the NER and returns typed entities with sameAs URIs. Fallback path: deterministic regex-based extractor when sampling is unavailable. The result includes mode: "sampling" | "regex_fallback" so callers can tell which path ran.
When to use: building an entity map for schema generation, or auditing whether a page's entities match its target topic. To validate the JSON-LD itself, use audit_schema.
Either url or text must be provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public URL to fetch and analyze. Either this OR `text` is required. | |
| text | No | Raw text/HTML to analyze directly. Either this OR `url` is required. | |
| render | No | Rendering mode for `url`. `static` (default) reads raw HTML. `headless` runs Playwright Chromium to capture JS-rendered content (adds 3-10s; requires `playwright-core` + `npx playwright install chromium`). Ignored when `text` is used. | static |
| respect_robots | No | If true (default), respect robots.txt when fetching `url`. Ignored when `text` is used. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| source | Yes | ||
| entities | Yes | ||
| entity_count | Yes | ||
| citation_density_score | Yes |