The Pull References gives user the ability to pull references to the page. The name of the script is pull-references.


You could use the Copy Extension button below to individually install this extension. To install, just paste anywhere in your Roam graph and click "Yes, I Know What I'm Doing".

Manual Installation

If instead you prefer to manually install, first create a block with the text {{[[roam/js]]}} on any page in your Roam DB. Then, copy and paste this code block as a child of the block.

var existing = document.getElementById("pull-references");
if (!existing) {
  var extension = document.createElement("script");
  extension.src = "https://roamjs.com/pull-references.js";
  extension.id = "pull-references";
  extension.async = true;
  extension.type = "text/javascript";


The script supports the following configuration attributes, to be added in the [[roam/js/pull-references]] page:

  • Format - (Optional) The format that each reference will use when added to the page. Use ${ref} to specify where you want the text to be replaced by the block reference.
  • Remove Tags - (Optional) Set to 'True' if you would like to remove the tags from the block references after pulling them to the page.

Here's an example configuration from my personal DB:

Create a button by typing {{pull references}} into a page. Clicking the button adds all the linked references as references on the current page.


Other Extensions