The Pull References gives user the ability to pull references to the page.


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("roamjs-pull-references");
if (!existing) {
  var extension = document.createElement("script");
  extension.src = "https://roamjs.com/pull-references.js";
  extension.id = "roamjs-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.

This extension is also integrated with Smart Blocks! If you have both this extension and Roam42 installed, there will be a <%PULLREFERENCES%> command available. The command will automatically pull the linked references and paste blocks before continuing with the rest of the workflow.



This extension is brought to you by RoamJS! If you are facing any issues reach out to support@roamjs.com or click on the chat button on the bottom right. If you get value from using this extension, consider sponsoring RoamJS by clicking on the button below!


Add your email below to stay up to date on all RoamJS features, fixes, and news!

Other Extensions