> For the complete documentation index, see [llms.txt](https://developerdocs.instructure.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developerdocs.instructure.com/services/canvas/resources/lti_launch_definitions.md).

# LTI Launch Definitions

#### A Lti::LaunchDefinition object looks like: <a href="#lti-launchdefinition" id="lti-launchdefinition"></a>

```js
// A bare-bones representation of an LTI tool used by Canvas to launch the tool
{
  // The type of the launch definition. Always 'ContextExternalTool'
  "definition_type": "ContextExternalTool",
  // The Canvas ID of the tool
  "definition_id": "123",
  // The display name of the tool for the given placement
  "name": "My Tool",
  // The description of the tool for the given placement.
  "description": "This is a tool that does things.",
  // The launch URL for the tool
  "url": "https://www.example.com/launch",
  // The domain of the tool
  "domain": "example.com",
  // Placement-specific config for given placements
  "placements": {"assignment_selection":{"type":"Lti::PlacementLaunchDefinition"}},
  // The name of the account or course where the tool is deployed. Only included
  // if requested via include_context_name parameter.
  "context_name": "My Institution"
}
```

#### A Lti::PlacementLaunchDefinition object looks like: <a href="#lti-placementlaunchdefinition" id="lti-placementlaunchdefinition"></a>

```js
// A bare-bones LTI configuration for a specific placement
{
  // The LTI launch message type
  "message_type": "LtiResourceLinkRequest",
  // The launch URL for this placement
  "url": "https://www.example.com/launch?placement=assignment_selection",
  // The title of the tool for this placement
  "title": "My Tool (Assignment Selection)"
}
```

## [List LTI Launch Definitions](#method.lti/lti_apps.launch_definitions) <a href="#method.lti-lti_apps.launch_definitions" id="method.lti-lti_apps.launch_definitions"></a>

[Lti::LtiAppsController#launch\_definitions](https://github.com/instructure/canvas-lms/blob/master/app/controllers/lti/lti_apps_controller.rb)

#### `GET /api/v1/courses/:course_id/lti_apps/launch_definitions`

**Scope:** `url:GET|/api/v1/courses/:course_id/lti_apps/launch_definitions`

#### `GET /api/v1/accounts/:account_id/lti_apps/launch_definitions`

**Scope:** `url:GET|/api/v1/accounts/:account_id/lti_apps/launch_definitions`

List all tools available in this context for the given placements, in the form of Launch Definitions. Used primarily by the Canvas frontend. API users should consider using the External Tools API instead. This endpoint is cached for 10 minutes!

#### Request Parameters:

| Parameter                       | Type     | Description                                                                                                                                                                                                                                   |
| ------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `placements[Array]`             | `string` | The placements to return launch definitions for. If not provided, an empty list will be returned.                                                                                                                                             |
| `only_visible[Boolean]`         | `string` | If true, only return launch definitions that are visible to the current user. Defaults to true.                                                                                                                                               |
| `include_context_name[Boolean]` | `string` | If true, includes the deployment context name (account or course) of the tool definition in the response. This helps distinguish between tools with identical names deployed at different levels of the context hierarchy. Defaults to false. |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developerdocs.instructure.com/services/canvas/resources/lti_launch_definitions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
