actualNoteContentPart: ## app.getTaskDomains
  Get the list of configured Task Domains for the user.
  Arguments
  	None
  Returns
  	Array of task domains, each entry an object with the following properties:
  		name the String display name of the Task Domain
  		notes an Array of [noteHandle](/help/developing_amplenote_plugins/appendix_i#noteHandle) s, for each note in the Task Domain. This includes notes that are part of the Task Domain due to the tags applied to the note, notes that have been individually specified to be part of the Task Domain, and - for legacy Task Domains - potentially all notes. 
  		uuid the String identifier that uniquely identifies the Task Domain
  
  ```
  {  appOption: async function(app) {    const taskDomains = await app.getTaskDomains();     const descriptions = taskDomains.map(({ name, notes }) => {      return `${ name } - ${ notes.length } notes`);    });    app.alert(descriptions.join("\n"));  },} 
  ```
  
  ## app.getTaskDomainTasks
  Gets the list of tasks that belong to the given task domain. Note that this includes tasks that are not scheduled (on the calendar).
  Arguments
  	String task domain UUID
  Returns
  	Array of [task](/help/developing_amplenote_plugins/appendix_i#task)  objects describing the tasks in the task domain
  
  Note that this function can return a large amount of data, so it's highly recommended to use an async iterator to reduce the potential for performance impact.
  ```
  {  async appOption(app) {    const taskDomains = await app.getTaskDomains();    const taskDomainUUID = taskDomains[0].uuid;     for await (const task of app.getTaskDomainTasks(taskDomainUUID)) {      console.log("task: " + task.uuid);    }  }} 
  ```
  
  ## app.insertNoteContent
  Inserts content into a note.
  Arguments
  	[noteHandle](/help/developing_amplenote_plugins/appendix_i#noteHandle)  identifying the note to insert the text into
  	content: String of [markdown-formatted content](/help/developing_amplenote_plugins/appendix_iii)  to insert
  	(optional) object of additional options, with the following properties:
  		atEnd boolean indicating that content should be inserted at the end of the note. Defaults to false.
  Returns
  	Nothing
  Throws
  	If markdown content is over 100k characters
  	If the target note is readonly
  ```
  {  noteOption(app, noteUUID) {    app.insertNoteContent({ uuid: noteUUID }, "this is some **bold** text");  }} 
  ```
  
  ## app.insertTask
  Inserts a new task at the beginning of a note. See also: [note.insertTask](/help/developing_amplenote_plugins#note.insertTask) . 
  Arguments
  	[noteHandle](/help/developing_amplenote_plugins/appendix_i#noteHandle)  identifying the note to insert the task into
  	[task](/help/developing_amplenote_plugins/appendix_i#task)  object, with the following attributes (all are optional):
  		content: String of [markdown-formatted content](/help/developing_amplenote_plugins/appendix_iii)  to use in the task
  		hideUntil: Number a unix timestamp (seconds) to use for the "Hide until" time
  		startAt: Number a unix timestamp (seconds) to use for the "Start at" time
  Returns
  	The UUID of the newly created task
  Throws
  	If the provided content is not valid in a task (e.g. - a bullet list item)
  	If note is readonly/locked
  ```
  {  async noteOption(app, noteUUID) {    const taskUUID = await app.insertTask({ uuid: noteUUID }, { text: "this is a task" });    app.alert(taskUUID);  }} 
  ```
  ##
processedNoteContent: ---
  title: App Interface: Plugin methods to interact with ...
  headers: ## app.getTaskDomains
  ---
  app.getTaskDomains
  Get the list of configured Task Domains for the user.
  Arguments
  None
  Returns
  Array of task domains, each entry an object with the following properties:
  name the String display name of the Task Domain
  notes an Array of [noteHandle](/help/developing_amplenote_plugins/appendix_i#noteHandle)
   s, for each note in the Task Domain. This includes notes that are part of the Task Domain due to the tags applied to the note, notes that have been individually specified to be part of the Task Domain, and - for legacy Task Domains - potentially all notes.
  uuid the String identifier that uniquely identifies the Task Domain {  appOption: async function(app) {    const taskDomains = await app.getTaskDomains();     const descriptions = taskDomains.map(({ name, notes }) => {      return `${ name } - ${ notes.length } notes`);    });    app.alert(descriptions.join("\n"));  },} 
  
  app.getTaskDomainTasks
  Gets the list of tasks that belong to the given task domain. Note that this includes tasks that are not scheduled (on the calendar).
  Arguments
  String task domain UUID
  Returns
  Array of [task](/help/developing_amplenote_plugins/appendix_i#task)
    objects describing the tasks in the task domain Note that this function can return a large amount of data, so it's highly recommended to use an async iterator to reduce the potential for performance impact. {  async appOption(app) {    const taskDomains = await app.getTaskDomains();    const taskDomainUUID = taskDomains[0].uuid;     for await (const task of app.getTaskDomainTasks(taskDomainUUID)) {      console.log("task: " + task.uuid);    }  }} 
  
  app.insertNoteContent
  Inserts content into a note.
  Arguments
  [noteHandle](/help/developing_amplenote_plugins/appendix_i#noteHandle)
    identifying the note to insert the text into
  content: String of [markdown-formatted content](/help/developing_amplenote_plugins/appendix_iii)
    to insert
  (optional) object of additional options, with the following properties:
  atEnd boolean indicating that content should be inserted at the end of the note. Defaults to false.
  Returns
  Nothing
  Throws
  If markdown content is over 100k characters
  If the target note is readonly {  noteOption(app, noteUUID) {    app.insertNoteContent({ uuid: noteUUID }, "this is some **bold** text");  }} 
  
  app.insertTask
  Inserts a new task at the beginning of a note. See also: [note.insertTask](/help/developing_amplenote_plugins#note.insertTask)
   .
  Arguments
  [noteHandle](/help/developing_amplenote_plugins/appendix_i#noteHandle)
    identifying the note to insert the task into
  [task](/help/developing_amplenote_plugins/appendix_i#task)
    object, with the following attributes (all are optional):
  content: String of [markdown-formatted content](/help/developing_amplenote_plugins/appendix_iii)
    to use in the task
  hideUntil: Number a unix timestamp (seconds) to use for the "Hide until" time
  startAt: Number a unix timestamp (seconds) to use for the "Start at" time
  Returns
  The UUID of the newly created task
  Throws
  If the provided content is not valid in a task (e.g. - a bullet list item)
  If note is readonly/locked {  async noteOption(app, noteUUID) {    const taskUUID = await app.insertTask({ uuid: noteUUID }, { text: "this is a task" });    app.alert(taskUUID);  }}
noteTitle: App Interface: Plugin methods to interact with user notes