1# WantAgentInfo
2
3The **WantAgentInfo** module defines the information required for triggering a **WantAgent** object. The information can be used as an input parameter in [getWantAgent](js-apis-app-ability-wantAgent.md#wantagentgetwantagent) to obtain a specified **WantAgent** object.
4
5> **NOTE**
6>
7> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8
9## Modules to Import
10
11```ts
12import { wantAgent } from '@kit.AbilityKit';
13import wantAgentDeprecated from '@ohos.wantAgent';
14```
15
16## Attributes
17
18**Atomic service API**: This API can be used in atomic services since API version 12.
19
20**System capability**: SystemCapability.Ability.AbilityRuntime.Core
21
22| Name          | Type                           | Mandatory| Description                  |
23| -------------- | ------------------------------- | ---- | ---------------------- |
24| wants          | Array\<[Want](js-apis-app-ability-want.md)\>                   | Yes  | Array of all **Want** objects. Currently, only one Want is supported. The array is reserved for future capability expansion. If multiple values are passed in, only the first member in the array is used.   |
25| operationType<sup>(deprecated)</sup>  | [wantAgentDeprecated.OperationType](js-apis-wantAgent.md#operationtype)         | No  | Operation type.<br>This attribute is supported since API version 7 and deprecated since API version 11. You are advised to use actionType<sup>11+</sup> instead.              |
26| actionType<sup>11+</sup> | [wantAgent.OperationType](js-apis-app-ability-wantAgent.md#operationtype)         | No  | Operation type.              |
27| requestCode    | number                          | Yes  | Request code defined by the user.|
28| wantAgentFlags<sup>(deprecated)</sup> | Array<[wantAgentDeprecated.WantAgentFlags](js-apis-wantAgent.md#wantagentflags)> | No  | Array of flags for using the **WantAgent** object.<br>This attribute is supported since API version 7 and deprecated since API version 11. You are advised to use actionFlags<sup>11+</sup> instead.          |
29| actionFlags<sup>11+</sup> | Array<[wantAgent.WantAgentFlags](js-apis-app-ability-wantAgent.md#wantagentflags)> | No  | Array of flags for using the **WantAgent** object.          |
30| extraInfo      | { [key: string]: any }            | No  | Extra information.              |
31| extraInfos<sup>11+</sup> | Record\<string, Object>            | No  | Extra information. You are advised to use this attribute to replace **extraInfo**. When this attribute is set, **extraInfo** does not take effect.              |
32