start_device_authorization
Begin the hosted-book connection by retrieving a short user-approval code and link, then wait for approval to complete.
Instructions
Step 1 of connecting a hosted book: get a code for the user to approve.
Returns IMMEDIATELY with a short code and a link. Show both to the user,
then call await_device_approval to wait for them to approve it.
Deliberately two tools and not one. An MCP tool returns a single result, at the end — so a tool that fetched the code and then waited for approval could never show the code to the person who has to type it. It could only ever expire. That was the first version of this, and it was unusable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| control_url | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |