Add get_character_from_url tool for direct URL-based fetching
Allows users to pass a specific URL to fetch character data from. Fandom URLs are auto-detected and processed with the structured MediaWiki API pipeline; non-Fandom URLs use a generic HTML scrape. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -115,6 +115,28 @@ Deletes a specific character from the cache.
|
||||
|
||||
---
|
||||
|
||||
### `get_character_from_url`
|
||||
|
||||
Fetches character data from a specific URL you provide. Fandom wiki URLs are detected automatically and processed with the same structured extraction as `get_character`, giving richer results. Non-Fandom URLs are scraped generically.
|
||||
|
||||
**Parameters:**
|
||||
| Name | Type | Description |
|
||||
|---|---|---|
|
||||
| `url` | string | Full URL to the character page |
|
||||
| `name` | string | Character name (optional — inferred from the page title for Fandom URLs) |
|
||||
| `franchise` | string | Franchise name (optional) |
|
||||
|
||||
**Example prompt:**
|
||||
> Use get_character_from_url to fetch data from https://finalfantasy.fandom.com/wiki/Tifa_Lockhart
|
||||
|
||||
**When to use instead of `get_character`:**
|
||||
- The character's wiki page isn't found by the automatic search
|
||||
- You want data from a specific page (e.g. a particular version or alternate wiki)
|
||||
- The franchise isn't in the supported list and you have a direct Fandom URL
|
||||
- You have a non-Fandom source you want to pull from
|
||||
|
||||
---
|
||||
|
||||
### `generate_image_prompt`
|
||||
|
||||
Builds a comma-separated tag list for image generation tools (Stable Diffusion, Midjourney, DALL-E, etc.).
|
||||
|
||||
Reference in New Issue
Block a user