A node (either a bookmark or a folder) in the bookmark tree. Child nodes are ordered within their parent folder.

interface BookmarkTreeNode {
    children?: BookmarkTreeNode[];
    dateAdded?: number;
    dateGroupModified?: number;
    id: string;
    index?: number;
    parentId?: string;
    title: string;
    type?: BookmarkTreeNodeType;
    unmodifiable?: "managed";
    url?: string;
}
Index
children?: BookmarkTreeNode[]

An ordered list of children of this node.

dateAdded?: number

When this node was created, in milliseconds since the epoch (new Date(dateAdded)).

dateGroupModified?: number

When the contents of this folder last changed, in milliseconds since the epoch.

id: string

The unique identifier for the node. IDs are unique within the current profile, and they remain valid even after the browser is restarted.

index?: number

The 0-based position of this node within its parent folder.

parentId?: string

The id of the parent folder. Omitted for the root node.

title: string

The text displayed for the node.

Indicates the type of the BookmarkTreeNode, which can be one of bookmark, folder or separator.

unmodifiable?: "managed"

Indicates the reason why this node is unmodifiable. The managed value indicates that this node was configured by the system administrator or by the custodian of a supervised user. Omitted if the node can be modified by the user and the extension (default).

url?: string

The URL navigated to when a user clicks the bookmark. Omitted for folders.