From RPTools Wiki
Jump to navigationJump to search

 Note: This refers to a proposed change that has not been implemented in the main code base yet.

library.getContents() Function

 Note: This function can only be used in a Trusted Macro

Introduced in version 1.11.0
Retrieves a list of the content in the specified Add-On library. Information is returned as a JSON array.
  • For .mtlib Add-On libraries this will include a list of all MTScript, HTML, JavaScript and CSS files,
  • For lib:token Add-On libraries this will include a list of all macros and all defined Token Properties.




  • namespace - Namespace for the library.


Get content information for the specified library.
<pre>[r: json.indent(library.getContents("net.rptools.addon.some-lib"),2)]</pre>

Returns: Output from a .mtlib library:


See Also

Version Changes

  • 1.11.0 - Function added