Googleapis Libraryagent
Googleapis Libraryagent is a connector for Google's Library Agent sample API, a demonstration API for managing fictional library shelves and books.
- Base URL:
https://libraryagent.googleapis.com - Auth: OAuth 2.0 (user-delegated) — attach an InTouch
oauthcredential. Mint one withitcli.py /oauth <provider>(device-code) or/google-auth(Google); the server auto-refreshes the access token before each run, so the connector never handles or stores tokens.
Operations
libraryagent_shelves_list— GET /v1/shelves — Lists shelves. The order is unspecified but deterministic. Newly created shelveslibraryagent_shelves_books_get— GET /v1/{name} — Gets a book. Returns NOT_FOUND if the book does not exist.libraryagent_shelves_books_list— GET /v1/{parent}/books — Lists books in a shelf. The order is unspecified but deterministic. Newly createlibraryagent_shelves_books_borrow— POST /v1/{name}:borrow — Borrow a book from the library. Returns the book if it is borrowed successfully.libraryagent_shelves_books_return— POST /v1/{name}:return — Return a book to the library. Returns the book if it is returned to the library
Inputs
- a linked
oauthcredential (no key inputs) — the server injects a freshAuthorization: Bearerfrom it operation— one of the operations above- path parameters when an operation's path contains
{...} query— optional JSON object of query paramsbody— JSON object for create/update ops
Example
operation: libraryagent_shelves_list
# (attach an 'oauth' credential to the task — no inline secrets)
Publishes
The keys a later task may reference as {{taskName.key}}. Referencing anything not listed here resolves to nothing at run time.
erroroperationresultstatus
Input Properties
Every property this tool accepts, from its own tool.iml.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
operation |
string | yes | — | One of: libraryagent_shelves_list, libraryagent_shelves_books_get, libraryagent_shelves_books_list, libraryagent_shelves_books_borrow, libraryagent_shelves_books_return |
name |
string | no | — | Path parameter name (required by some operations). |
parent |
string | no | — | Path parameter parent (required by some operations). |
query |
string | no | — | Optional query params as a JSON object string, e.g. {"limit": 10}. |
body |
string | no | — | Request body as a JSON object string (for create/update operations). |