---
title: "X"
description: "Connect X and enable the operations your application needs. Each person authorizes their own account."
---

> Documentation Index
> Fetch the complete documentation index at: https://help.tooluse.net/llms.txt
> Use this file to discover all available pages before exploring further.

# X

<p>Connect X and enable the operations your application needs. Each person authorizes their own account.</p>

<details data-command-index><summary>What you can do (5)</summary>
<h2>What you can do</h2>
<p>Available commands: 5 (5 read, 0 write). Enable only the commands your application needs.</p>
<div class="nb-table-scroll"><table>
<thead>
<tr>
<th>Command</th>
<th>Effect</th>
</tr>
</thead>
<tbody><tr>
<td><a href="https://help.tooluse.net/integrations/x#command-x-library-bookmarks-list">Read saved posts</a> — <code>x-library.bookmarks.list</code></td>
<td>Read</td>
</tr>
<tr>
<td><a href="https://help.tooluse.net/integrations/x#command-x-library-likes-list">Read liked posts</a> — <code>x-library.likes.list</code></td>
<td>Read</td>
</tr>
<tr>
<td><a href="https://help.tooluse.net/integrations/x#command-x-library-folders-list">Read bookmark folders</a> — <code>x-library.folders.list</code></td>
<td>Read</td>
</tr>
<tr>
<td><a href="https://help.tooluse.net/integrations/x#command-x-library-folders-posts-list">Read posts in a bookmark folder</a> — <code>x-library.folders.posts.list</code></td>
<td>Read</td>
</tr>
<tr>
<td><a href="https://help.tooluse.net/integrations/x#command-x-api-search-recent">Search recent posts (one page)</a> — <code>x-api.search-recent</code></td>
<td>Read</td>
</tr>
</tbody></table>
</div>
</details>
<h2>Connect and use</h2>

<p><a href="https://www.tooluse.net/tools/integrations/x">Connect and use</a></p>
<p>Open the integration&#39;s connection form to check the available credential source. The source has not been resolved for this documentation export. The instructions below apply when using your own provider account.</p>
<h2>Get your provider credentials</h2>
<p>Follow these steps for X, then enter the issued values in the connection form below.</p>
<ol>
<li>In X Developer Console, enable OAuth 2.0 for a confidential Web App and obtain Client ID/Secret. Register <a href="https://api.tooluse.net/v1/x/callback">https://api.tooluse.net/v1/x/callback</a>, save the connection and authorize each person with PKCE S256 and tweet.read users.read bookmark.read like.read offline.access. An app-only Bearer token cannot read private bookmarks. X API reads can incur charges.</li>
</ol>
<p><a href="https://docs.x.com/x-api/posts/bookmarks/introduction">Official credential setup</a></p>
<h2>Where to enter credentials</h2>
<p>In the integration page, sign in, choose your workspace and open Connect. If a <strong>Credentials</strong> choice is shown, select <strong>Use my credentials</strong>. Fill the following connection fields and save. Provider credentials belong in this form, never in an MCP configuration or tool input.</p>
<div class="nb-table-scroll"><table>
<thead>
<tr>
<th>Connection field</th>
<th>Requirement</th>
</tr>
</thead>
<tbody><tr>
<td>App Bearer Token (app-only search)</td>
<td>Optional</td>
</tr>
<tr>
<td>OAuth Client ID</td>
<td>Optional</td>
</tr>
<tr>
<td>OAuth Client Secret</td>
<td>Optional</td>
</tr>
<tr>
<td>OAuth callback URL</td>
<td>Optional</td>
</tr>
<tr>
<td>Access Token</td>
<td>Optional</td>
</tr>
<tr>
<td>Authorized X User ID</td>
<td>Optional</td>
</tr>
<tr>
<td>Granted scopes</td>
<td>Optional</td>
</tr>
<tr>
<td>Return URL after authorization</td>
<td>Optional</td>
</tr>
</tbody></table>
</div><p>Open API keys and create a Tooluse.net key for the enabled commands.</p>
<p>Set TOOLUSE_API_KEY in your client and use the shared MCP configuration.</p>
<p><a href="https://help.tooluse.net/clients">Configure Claude Code, Codex or Cursor once</a></p>

<h2>Permissions and results</h2>

<p>If you have more than one workspace, check the selected workspace in the connection or API-key dialog before saving. Roles, enabled commands, expiry and revocation use Tooluse.net&#39;s existing permissions. Disabling a connection or revoking a key immediately prevents new calls.</p>

<p>Send one Claude tool_use block per request. Keep the same Idempotency-Key when retrying the same request; use a new key for a new call. The response includes the shared Tooluse.net receipt and Claude tool_result. Check both HTTP status and the returned tool result before treating a call as successful.</p>

<p>Your connection&#39;s daily allowance and key permissions also apply. Adding a connection does not make a provider request.</p>

<p>Calls return the shared execution receipt and a Claude tool_result. Provider output varies by operation; consult the provider documentation for its response fields. Unconfirmed calls should be checked before retrying.</p>

<h2>Call from your client</h2>

<p>Use the shared MCP configuration. Refresh your client&#39;s tool list after saving the connection or changing key permissions, then call the returned tool name with the example input below.</p>

<p><a href="https://help.tooluse.net/clients">Configure Claude Code, Codex or Cursor once</a></p>

<h2>Discover your enabled tools</h2>

<p>List permitted tools in Claude format. Read every page using page and size (maximum 100) until all results have been received. Use the returned name, not a catalog capability identifier, in the tool_use block.</p>

<pre><code class="language-bash">curl 'https://api.tooluse.net/v1/tools' \
  -H "Authorization: Bearer $TOOLUSE_API_KEY"
</code></pre>

<p>Find this command in the tool list permitted by your key. Replace svc_FROM_YOUR_TOOL_LIST with its returned name. Use a new Idempotency-Key for each new call and retain it when retrying that same call.</p>

<h2>HTTP call</h2>

<pre><code class="language-bash">curl 'https://api.tooluse.net/v1/tool-calls' \
  -H "Authorization: Bearer $TOOLUSE_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: replace-with-a-new-call-id' \
  --data '{
  "type": "tool_use",
  "id": "toolu_example",
  "name": "svc_FROM_YOUR_TOOL_LIST",
  "input": {
    "maxResults": 20
  }
}'
</code></pre>

<p>Send one Claude tool_use block per request. Keep the same Idempotency-Key when retrying the same request; use a new key for a new call. The response includes the shared Tooluse.net receipt and Claude tool_result. Check both HTTP status and the returned tool result before treating a call as successful.</p>

<h2>Commands</h2>

<details id="command-x-library-bookmarks-list">
<summary><span>Read saved posts — <code>x-<wbr>library.<wbr>bookmarks.<wbr>list</code></span></summary>
<p>Run <strong>Read saved posts</strong> with X. This is a read command; it does not grant access beyond the connected account&#39;s permissions.</p>

<p>This is a read operation. Provider rate limits and data access rules still apply.</p>

<p><a href="https://www.tooluse.net/tools/integrations/x?command=x-library.bookmarks.list">Connect and use</a></p>

<p><strong>Parameters</strong></p>

<p>Requiredness is local to the containing object. A required child is required only when its parent object or array item is provided. Alternative schemas are identified in the Constraints column; the linked full JSON Schema is authoritative.</p>

<div class="nb-table-scroll"><table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Required in parent</th>
<th>Description</th>
<th>Constraints</th>
</tr>
</thead>
<tbody><tr>
<td><code>maxResults</code></td>
<td>integer</td>
<td>Optional</td>
<td></td>
<td><code>minimum: 1; maximum: 100</code></td>
</tr>
<tr>
<td><code>nextToken</code></td>
<td>string</td>
<td>Optional</td>
<td></td>
<td><code>maxLength: 2048; pattern: &quot;^[A-Za-z0-9_-]{1,2048}$&quot;</code></td>
</tr>
</tbody></table>
</div>
<p><strong>Full JSON Schema</strong></p>

<p><a href="https://api.tooluse.net/v1/integrations/x/commands/x-library.bookmarks.list">Full JSON Schema</a></p>

<p><strong>Example input</strong></p>

<pre><code class="language-json">{
  "maxResults": 20
}
</code></pre>

<p>At most 2 provider requests per invocation; timeout: 30 seconds.</p>

</details>
<details id="command-x-library-likes-list">
<summary><span>Read liked posts — <code>x-<wbr>library.<wbr>likes.<wbr>list</code></span></summary>
<p>Run <strong>Read liked posts</strong> with X. This is a read command; it does not grant access beyond the connected account&#39;s permissions.</p>

<p>This is a read operation. Provider rate limits and data access rules still apply.</p>

<p><a href="https://www.tooluse.net/tools/integrations/x?command=x-library.likes.list">Connect and use</a></p>

<p><strong>Parameters</strong></p>

<p>Requiredness is local to the containing object. A required child is required only when its parent object or array item is provided. Alternative schemas are identified in the Constraints column; the linked full JSON Schema is authoritative.</p>

<div class="nb-table-scroll"><table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Required in parent</th>
<th>Description</th>
<th>Constraints</th>
</tr>
</thead>
<tbody><tr>
<td><code>maxResults</code></td>
<td>integer</td>
<td>Optional</td>
<td></td>
<td><code>minimum: 1; maximum: 100</code></td>
</tr>
<tr>
<td><code>nextToken</code></td>
<td>string</td>
<td>Optional</td>
<td></td>
<td><code>maxLength: 2048; pattern: &quot;^[A-Za-z0-9_-]{1,2048}$&quot;</code></td>
</tr>
</tbody></table>
</div>
<p><strong>Full JSON Schema</strong></p>

<p><a href="https://api.tooluse.net/v1/integrations/x/commands/x-library.likes.list">Full JSON Schema</a></p>

<p><strong>Example input</strong></p>

<pre><code class="language-json">{
  "maxResults": 20
}
</code></pre>

<p>At most 2 provider requests per invocation; timeout: 30 seconds.</p>

</details>
<details id="command-x-library-folders-list">
<summary><span>Read bookmark folders — <code>x-<wbr>library.<wbr>folders.<wbr>list</code></span></summary>
<p>Run <strong>Read bookmark folders</strong> with X. This is a read command; it does not grant access beyond the connected account&#39;s permissions.</p>

<p>This is a read operation. Provider rate limits and data access rules still apply.</p>

<p><a href="https://www.tooluse.net/tools/integrations/x?command=x-library.folders.list">Connect and use</a></p>

<p><strong>Parameters</strong></p>

<p>Requiredness is local to the containing object. A required child is required only when its parent object or array item is provided. Alternative schemas are identified in the Constraints column; the linked full JSON Schema is authoritative.</p>

<div class="nb-table-scroll"><table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Required in parent</th>
<th>Description</th>
<th>Constraints</th>
</tr>
</thead>
<tbody><tr>
<td><code>maxResults</code></td>
<td>integer</td>
<td>Optional</td>
<td></td>
<td><code>minimum: 1; maximum: 100</code></td>
</tr>
<tr>
<td><code>nextToken</code></td>
<td>string</td>
<td>Optional</td>
<td></td>
<td><code>maxLength: 2048; pattern: &quot;^[A-Za-z0-9_-]{1,2048}$&quot;</code></td>
</tr>
</tbody></table>
</div>
<p><strong>Full JSON Schema</strong></p>

<p><a href="https://api.tooluse.net/v1/integrations/x/commands/x-library.folders.list">Full JSON Schema</a></p>

<p><strong>Example input</strong></p>

<pre><code class="language-json">{
  "maxResults": 20
}
</code></pre>

<p>At most 2 provider requests per invocation; timeout: 30 seconds.</p>

</details>
<details id="command-x-library-folders-posts-list">
<summary><span>Read posts in a bookmark folder — <code>x-<wbr>library.<wbr>folders.<wbr>posts.<wbr>list</code></span></summary>
<p>Run <strong>Read posts in a bookmark folder</strong> with X. This is a read command; it does not grant access beyond the connected account&#39;s permissions.</p>

<p>This is a read operation. Provider rate limits and data access rules still apply.</p>

<p><a href="https://www.tooluse.net/tools/integrations/x?command=x-library.folders.posts.list">Connect and use</a></p>

<p><strong>Parameters</strong></p>

<p>Requiredness is local to the containing object. A required child is required only when its parent object or array item is provided. Alternative schemas are identified in the Constraints column; the linked full JSON Schema is authoritative.</p>

<div class="nb-table-scroll"><table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Required in parent</th>
<th>Description</th>
<th>Constraints</th>
</tr>
</thead>
<tbody><tr>
<td><code>maxResults</code></td>
<td>integer</td>
<td>Optional</td>
<td></td>
<td><code>minimum: 1; maximum: 100</code></td>
</tr>
<tr>
<td><code>nextToken</code></td>
<td>string</td>
<td>Optional</td>
<td></td>
<td><code>maxLength: 2048; pattern: &quot;^[A-Za-z0-9_-]{1,2048}$&quot;</code></td>
</tr>
<tr>
<td><code>folderId</code></td>
<td>string</td>
<td>Required</td>
<td></td>
<td><code>pattern: &quot;^[0-9]{1,19}$&quot;</code></td>
</tr>
</tbody></table>
</div>
<p><strong>Full JSON Schema</strong></p>

<p><a href="https://api.tooluse.net/v1/integrations/x/commands/x-library.folders.posts.list">Full JSON Schema</a></p>

<p><strong>Example input</strong></p>

<pre><code class="language-json">{
  "maxResults": 20,
  "folderId": "123456789"
}
</code></pre>

<p>At most 2 provider requests per invocation; timeout: 30 seconds.</p>

</details>
<details id="command-x-api-search-recent">
<summary><span>Search recent posts (one page) — <code>x-<wbr>api.<wbr>search-<wbr>recent</code></span></summary>
<p>Run <strong>Search recent posts (one page)</strong> with X. This is a read command; it does not grant access beyond the connected account&#39;s permissions.</p>

<p>This is a read operation. Provider rate limits and data access rules still apply.</p>

<p><a href="https://www.tooluse.net/tools/integrations/x?command=x-api.search-recent">Connect and use</a></p>

<p><strong>Parameters</strong></p>

<p>Requiredness is local to the containing object. A required child is required only when its parent object or array item is provided. Alternative schemas are identified in the Constraints column; the linked full JSON Schema is authoritative.</p>

<div class="nb-table-scroll"><table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Required in parent</th>
<th>Description</th>
<th>Constraints</th>
</tr>
</thead>
<tbody><tr>
<td><code>query</code></td>
<td>string</td>
<td>Required</td>
<td></td>
<td><code>minLength: 1; maxLength: 512</code></td>
</tr>
<tr>
<td><code>startTime</code></td>
<td>string</td>
<td>Required</td>
<td></td>
<td><code>format: &quot;date-time&quot;</code></td>
</tr>
<tr>
<td><code>endTime</code></td>
<td>string</td>
<td>Required</td>
<td></td>
<td><code>format: &quot;date-time&quot;</code></td>
</tr>
<tr>
<td><code>maxResults</code></td>
<td>integer</td>
<td>Optional</td>
<td></td>
<td><code>minimum: 10; maximum: 100</code></td>
</tr>
<tr>
<td><code>sortOrder</code></td>
<td>string</td>
<td>Optional</td>
<td></td>
<td><code>enum: [&quot;recency&quot;,&quot;relevancy&quot;]</code></td>
</tr>
<tr>
<td><code>nextToken</code></td>
<td>string</td>
<td>Optional</td>
<td></td>
<td><code>minLength: 1; maxLength: 2048; pattern: &quot;^[A-Za-z0-9_-]+$&quot;</code></td>
</tr>
</tbody></table>
</div>
<p><strong>Full JSON Schema</strong></p>

<p><a href="https://api.tooluse.net/v1/integrations/x/commands/x-api.search-recent">Full JSON Schema</a></p>

<p><strong>Example input</strong></p>

<pre><code class="language-json">{
  "query": "Ubuntu regression -is:retweet",
  "startTime": "2026-11-02T02:00:00Z",
  "endTime": "2026-11-03T02:00:00Z",
  "maxResults": 100,
  "sortOrder": "relevancy"
}
</code></pre>

<p>At most 2 provider requests per invocation; timeout: 60 seconds.</p>

</details>
<h2>Errors</h2>

<p>Check the key&#39;s expiry, revocation, workspace and allowed operations.</p>

<p>Reuse the same idempotency key only for the same request.</p>

<p>The connection or provider limit has been reached. Check the receipt before retrying.</p>

<h2>Test the connection</h2>

<p>Open the integration&#39;s commands below to inspect parameters and examples. Start with a read command for an account or resource you can access. Refresh your client&#39;s tool list, use the returned tool name, and check the execution result and usage. Provider charges and permissions still apply. Never test a write against production data without reviewing it.</p>

<p><a href="https://docs.x.com/x-api/posts/bookmarks/introduction">Official provider documentation</a></p>

Source: https://help.tooluse.net/integrations/x/index.mdx
