addedInput schema / properties / include_files
Added value: +{
+ "default": false,
+ "description": "Also list the download URLs of each listed page's files — every JPEG size, the JP2 and TIFF masters, OCR XML, and text files. Default false.",
+ "type": "boolean"
+}
changedInput schema / properties / item_id / description
Previous value: -"LOC item id from a libofcongress_search_items result's \"id\" field (where is_item is true). A simple ID (\"2009632251\", \"2005691065\") or a slash-separated path for newspaper pages (\"sn95047246/1935-09-05/ed-1\"). Pass the id verbatim; do not prepend the loc.gov URL or an \"item/\" prefix."New value: +"LOC item id from a libofcongress_search_items result's \"id\" field (where is_item is true): a simple ID (\"2009632251\", \"2005691065\") or a slash-separated path for newspaper issues (\"sn95047246/1935-09-05/ed-1\"). A loc.gov item link is also read as its id: \"https://www.loc.gov/item/2009632251/\", http or without \"www.\", or \"item/2009632251\". Any other URL, such as a /resource/ page URL, is rejected."
addedInput schema / properties / page_limit
Added value: +{
+ "default": 50,
+ "description": "Pages to list. Default 50. A response lists at most 100 pages: a larger page_limit (up to 1000) is served as 100.",
+ "maximum": 1000,
+ "minimum": 1,
+ "type": "integer"
+}
addedInput schema / properties / page_offset
Added value: +{
+ "default": 0,
+ "description": "Index of the first page to list, 0-based across all of the item's resources. Default 0. Pass next_page_offset from the previous response to continue.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+}
changedOutput schema / anyOf
Previous value: -[
- {
- "not": {
- "required": [
- "error"
- ]
- },
- "required": [
- "item_id",
- "title",
- "contributors",
- "subject_headings",
- "notes",
- "languages",
- "locations",
- "former_ids",
- "original_formats",
- "online_formats",
- "resource_links",
- "related_items",
- "url"
- ]
- },
- {
- "required": [
- "error"
- ]
- }
-]New value: +[
+ {
+ "not": {
+ "required": [
+ "error"
+ ]
+ },
+ "required": [
+ "item_id",
+ "title",
+ "contributors",
+ "subject_headings",
+ "subject_terms",
+ "notes",
+ "languages",
+ "locations",
+ "former_ids",
+ "original_formats",
+ "online_formats",
+ "resources",
+ "pages",
+ "page_total",
+ "related_items",
+ "url",
+ "totalCount"
+ ]
+ },
+ {
+ "required": [
+ "error"
+ ]
+ }
+]
changedOutput schema / properties / date / description
Previous value: -"Publication or creation date."New value: +"Publication or creation date as LOC catalogs it: free text, a year, or a full date (e.g., \"1936 Apr.\", \"1909-1911.\", \"1894\", \"1912-04-16\")."
addedOutput schema / properties / effectivePageLimit
Added value: +{
+ "description": "The page_limit actually served when page_limit exceeded the per-call cap of 100. Absent when page_limit was within the cap.",
+ "type": "number"
+}
changedOutput schema / properties / error / properties / data / properties / reason / description
Previous value: -"Machine-readable failure mode. Declared by this tool: `item_not_found`: No item exists for the given ID. `rate_limit_exceeded`: LOC API rate limit exceeded; requests are blocked for approximately 1 hour. `server_busy`: More Library of Congress requests are queued on this server than can start within this call's time budget. `request_timed_out`: The Library of Congress did not respond within the 50-second request budget. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `invalid_item_id`: item_id is neither a LOC item ID nor a loc.gov /item/ link: a URL on another loc.gov path (such as a /resource/ page URL) or another host, or text with characters or segments no LOC ID has. `item_not_found`: No item exists for the given ID. `rate_limit_exceeded`: LOC API rate limit exceeded; requests are blocked for approximately 1 hour. `server_busy`: More Library of Congress requests are queued on this server than can start within this call's time budget. `request_timed_out`: The Library of Congress did not respond within the 50-second request budget. `upstream_unavailable`: The Library of Congress could not be reached, or answered with an error status, a bot challenge or other HTML page, or an unreadable response instead of its JSON. Other values are possible when a failure originates below the handler."
changedOutput schema / properties / error / properties / data / properties / reason / examples
Previous value: -[
- "item_not_found",
- "rate_limit_exceeded",
- "server_busy",
- "request_timed_out"
-]New value: +[
+ "invalid_item_id",
+ "item_not_found",
+ "rate_limit_exceeded",
+ "server_busy",
+ "request_timed_out",
+ "upstream_unavailable"
+]
changedOutput schema / properties / item_id / description
Previous value: -"LOC item ID as resolved by the service (matches the input item_id)."New value: +"LOC item ID: the input item_id, or the id read from the loc.gov item link passed as item_id."
addedOutput schema / properties / next_page_offset
Added value: +{
+ "description": "page_offset for the next window of pages. Absent when this window reaches the last page.",
+ "type": "number"
+}
addedOutput schema / properties / notice
Added value: +{
+ "description": "Set when page_offset is past the last page, or when page_limit was capped. Absent otherwise.",
+ "type": "string"
+}
addedOutput schema / properties / page_total
Added value: +{
+ "description": "Pages across all of the item's resources.",
+ "type": "number"
+}
addedOutput schema / properties / pages
Added value: +{
+ "description": "The window of the item's pages starting at page_offset, across every resource in order. Empty when the item has no pages or page_offset is past the last page.",
+ "items": {
+ "additionalProperties": false,
+ "description": "One page of the item.",
+ "properties": {
+ "files": {
+ "description": "Download URLs of the page's files: JPEG sizes, JP2 and TIFF masters, OCR XML, text. Present only when include_files is true.",
+ "items": {
+ "description": "Download URL; its extension names the format.",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "has_text": {
+ "description": "True when LOC holds OCR or transcribed text for this page.",
+ "type": "boolean"
+ },
+ "page_url": {
+ "description": "LOC page URL. Pass to libofcongress_get_newspaper_page to read its text when has_text is true.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "page_url",
+ "has_text"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+}
removedOutput schema / properties / resource_links
Removed value: -{
- "description": "URLs to downloadable digital files (TIFF, JPEG, PDF). Empty when no digital surrogate exists.",
- "items": {
- "type": "string"
- },
- "type": "array"
-}
addedOutput schema / properties / resources
Added value: +{
+ "description": "The item's digital resources, in LOC order. Empty when no digital surrogate exists.",
+ "items": {
+ "additionalProperties": false,
+ "description": "One digital resource of the item, such as a photo, a volume, or a recording.",
+ "properties": {
+ "audio": {
+ "description": "Audio stream (MP3) of a sound recording. Absent when LOC gives none.",
+ "type": "string"
+ },
+ "image": {
+ "description": "Representative image URL. Absent when LOC gives none.",
+ "type": "string"
+ },
+ "page_count": {
+ "description": "Pages (file groups) in this resource.",
+ "type": "number"
+ },
+ "pdf": {
+ "description": "PDF of the whole resource. Absent when LOC gives none.",
+ "type": "string"
+ },
+ "url": {
+ "description": "LOC resource URL; its pages are this URL plus ?sp=N.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "url",
+ "page_count"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+}
changedOutput schema / properties / subject_headings / description
Previous value: -"LCSH subject headings assigned to this item."New value: +"Library of Congress Subject Headings (LCSH) assigned to this item, as cataloged (e.g., \"United States--History--Civil War, 1861-1865\"). Empty when the record carries none."
addedOutput schema / properties / subject_terms
Added value: +{
+ "description": "Subject terms LOC indexes this item under: lowercase heading components without dates (e.g., \"civil war\", \"united states\"). Each is a value the libofcongress_search_items subject filter accepts.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+}
addedOutput schema / properties / totalCount
Added value: +{
+ "description": "Pages across all resources — mirrors output.page_total for agent reasoning.",
+ "type": "number"
+}