Plan internal links for a page, draft or pasted content
find_internal_linksPlans internal links for one piece of content using the Hi, Moose crawl of the user's own site. Returns two lists: pages this content should link out to, each with the anchor text to use (a phrase quoted from the content when one fits), and existing pages that should add a link pointing to this content, each with the anchor text to use on that page. Pages the content already links to, and pages that already link to it, are left out. The source is required: pass the url of a page, the draftId of a saved draft, or the content as text for a page that is not live yet. If the user gave no source, ask which page, draft or text first. Results depend on the site crawl in Hi, Moose: they cover the pages crawled so far and name the crawl date; pages published since the last crawl are not included. Takes about one minute. Give both lists to the user in full.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The URL of the page to plan links for. Works for pages already on the site and for new pages that are live. | |
| title | No | Optional: the title of the content, used when passing content as text. Up to 200 characters. | |
| content | No | The content as text or markdown, for a page that is not live yet and was not drafted in Hi, Moose. At least a few paragraphs, up to 50000 characters. | |
| draftId | No | The draftId of a saved draft, from create_draft or list_drafts. Use this for a draft made in Hi, Moose. | |
| project | Yes | The Hi, Moose project, by its name as shown by list_projects. The projectId is also accepted. |