Share connection
share_connectionChange who can use an app account the user connected in Stepper, such as sharing their Google Sheets account with another space so that space's workflows can use it. Only the person who connected an account can change this (fetch the connection: can_share says whether the user can). Credentials never change hands; only who may use the account does. The user's own platform connection (Stepper, Paperform and Papersign) can be shared the same way; list({ type: "connection", mine: true }) returns its id. A space's own connection cannot be shared.
sharing: • "spaces" — share it with the spaces listed in spaces (space ids from whoami), and only those. This is "Shared" on Stepper's Connections page. • "team" — share it with everyone on the team ("Public"). • "private" — stop sharing it ("Private").
Taking an account away from a space unpublishes the workflows there that use it, and they stay off until it is shared again and they are published again. The user is told which workflows before anything changes; workflows in spaces the user cannot see are not named, only said to exist. Some teams' plans only allow "team". Spaces this connection to Paperform cannot reach keep any sharing they already have. Asking for the sharing it already has changes nothing. Confirm with the user before calling this.
Returns { id, changed, sharing, message, record, unpublished }.
Example: share_connection({ id: "12:connection:9c58b7a0-…", sharing: "spaces", spaces: [12, 14] }) → { "changed": true, "message": "Work sheets is now shared with Marketing and Sales (Shared).", … }
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"sharing": "<sharing>"
},
"name": "share_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The connection id, exactly as list or fetch returned it. | |
| spaces | No | With sharing "spaces": every space that should be able to use it afterwards (space ids from whoami). Spaces left out lose it, except ones this connection to Paperform cannot reach, which keep what they have. | |
| sharing | Yes | Who can use it afterwards: "private" (only its owner), "team" (everyone on the team) or "spaces" (only the spaces in spaces). | |
| confirm_unpublish | No | Only when an earlier call refused and asked for the user's agreement (because the change would unpublish workflows, or the connection could not be read): the value that refusal gave, passed after the user agreed to exactly what it asked. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| record | No | ||
| changed | No | ||
| message | No | ||
| sharing | No | ||
| unpublished | No |