Get Page

Retrieves a page by ID. Returns page properties, not content. Use get_block_children for content.

Usage #

// Import the typed helper
import { getPage } from "@hotglue/sdk/notion";
const result = await client.execute({
...getPage({
page_id: string,
}),
userId: "user_123",
});
// result is typed as GetPageOutput
const result = await client.execute({
integration: "notion",
tool: "get_page",
userId: "user_123",
input: {
page_id: string,
},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["notion"],
userId: "user_123",
}),
});
await agent.generate("run the Get Page tool");

Required Permissions #

read_content

Input Schema #

page_id string required

The ID of the page to retrieve

Output Schema #

id string required
object string required
created_time string required
last_edited_time string required
archived bool
url string

This tool calls: #

GET https://api.notion.com/v1/pages/{page_id}